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)
commit3d790a4c269aefef8f6d32efb07333bc65bd43fe
treed8a4e8a57a4ce05b5c0994ba4d8d1bdb11e4e7e1
parent3b2f64d00c46e1e4e9bd0bb9bb12619adac27a4b
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