]> git.baikalelectronics.ru Git - kernel.git/commit
IPoIB: Make sure child devices use valid/proper pkeys
authorOr Gerlitz <ogerlitz@mellanox.com>
Thu, 18 Jul 2013 11:02:31 +0000 (14:02 +0300)
committerRoland Dreier <roland@purestorage.com>
Wed, 31 Jul 2013 21:23:40 +0000 (14:23 -0700)
commit4171de15ef0f657a4a76fa754e11b37fd2660c74
treed8a4e8a57a4ce05b5c0994ba4d8d1bdb11e4e7e1
parent617537d2ebf9f8060e43c17ed9a7bf6d98b03f36
IPoIB: Make sure child devices use valid/proper pkeys

Make sure that the IB invalid pkey (0x0000 or 0x8000) isn't used for
child devices.

Also, make sure to always set the full membership bit for the pkey of
devices created by rtnl link ops.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/ulp/ipoib/ipoib_main.c
drivers/infiniband/ulp/ipoib/ipoib_netlink.c