]> git.karo-electronics.de Git - linux-beck.git/commit
net/mlx4_core: Initialize IB port capabilities for all slaves
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Tue, 19 Jun 2012 08:21:41 +0000 (11:21 +0300)
committerRoland Dreier <roland@purestorage.com>
Tue, 10 Jul 2012 16:57:06 +0000 (09:57 -0700)
commit2aca1172c2f5b27fbc37297574f716c1c15f4153
tree8f6eb799bb0fa1c172ea45773d9d1c41ca934c87
parent00f5ce99dc6ee46c3113393cc8fa12173f9bbcd7
net/mlx4_core: Initialize IB port capabilities for all slaves

With IB SR-IOV, each slave has its own separate copy of the port
capabilities flags.  For example, the master can run a subnet manager
(which causes the IsSM bit to be set in the master's port
capabilities) without affecting the port capabilities seen by the
slaves (the IsSM bit will be seen as cleared in the slaves).

Also add a static inline mlx4_master_func_num() to enhance readability
of the code.

Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/net/ethernet/mellanox/mlx4/main.c
include/linux/mlx4/device.h