linux/drivers/infiniband/ulp/ipoib
Leon Romanovsky b79656ed44 RDMA/ipoib: Allow user space differentiate between valid dev_port
Systemd triggers the following warning during IPoIB device load:

 mlx5_core 0000:00:0c.0 ib0: "systemd-udevd" wants to know my dev_id.
        Should it look at dev_port instead?
        See Documentation/ABI/testing/sysfs-class-net for more info.

This is caused due to user space attempt to differentiate old systems
without dev_port and new systems with dev_port. In case dev_port will be
zero, the systemd will try to read dev_id instead.

There is no need to print a warning in such case, because it is valid
situation and it is needed to ensure systemd compatibility with old
kernels.

Link: https://github.com/systemd/systemd/blob/master/src/udev/udev-builtin-net_id.c#L358
Cc: <stable@vger.kernel.org> # 4.19
Fixes: f6350da41d ("IB/ipoib: Log sysfs 'dev_id' accesses from userspace")
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2019-05-07 16:13:23 -03:00
..
ipoib_cm.c IB/ipoib: Fix for use-after-free in ipoib_cm_tx_start 2019-01-25 12:17:54 -07:00
ipoib_ethtool.c RDMA: Fix return code check in rdma_set_cq_moderation 2018-07-31 17:03:46 -06:00
ipoib_fs.c infiniband: ipoib: no need to check return value of debugfs_create functions 2019-01-24 09:22:30 -07:00
ipoib_ib.c IB/ipoib: drop useless LIST_HEAD 2019-01-02 15:42:43 -07:00
ipoib_main.c RDMA/ipoib: Allow user space differentiate between valid dev_port 2019-05-07 16:13:23 -03:00
ipoib_multicast.c IB/IPoIB: Set ah valid flag in multicast send flow 2018-08-01 15:23:03 -06:00
ipoib_netlink.c RDMA/netdev: Fix netlink support in IPoIB 2018-10-10 17:58:12 -07:00
ipoib_verbs.c IB/core, ipoib: Do not overreact to SM LID change event 2019-05-07 16:06:03 -03:00
ipoib_vlan.c RDMA/netdev: Fix netlink support in IPoIB 2018-10-10 17:58:12 -07:00
ipoib.h Linux 5.0-rc5 2019-02-04 14:53:42 -07:00
Kconfig
Makefile