RDMA/ipoib: Set rtnl_link_ops for ipoib interfaces
authorKamal Heib <kamalheib1@gmail.com>
Sun, 4 Oct 2020 13:29:48 +0000 (16:29 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 5 Oct 2020 18:05:45 +0000 (15:05 -0300)
commit5ce2dced8e95e76ff7439863a118a053a7fc6f91
tree23495a78f9dbf5cc6e264590598cc60ed732e6f1
parent9f85cbe50aa044a46f0a22fda323fa27b80c82da
RDMA/ipoib: Set rtnl_link_ops for ipoib interfaces

Report the "ipoib pkey", "mode" and "umcast" netlink attributes for every
IPoiB interface type, not just children created with 'ip link add'.

After setting the rtnl_link_ops for the parent interface, implement the
dellink() callback to block users from trying to remove it.

Fixes: 862096a8bbf8 ("IB/ipoib: Add more rtnl_link_ops callbacks")
Link: https://lore.kernel.org/r/20201004132948.26669-1-kamalheib1@gmail.com
Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/ulp/ipoib/ipoib_main.c
drivers/infiniband/ulp/ipoib/ipoib_netlink.c
drivers/infiniband/ulp/ipoib/ipoib_vlan.c