diff options
author | Jack Morgenstein <jackm@dev.mellanox.co.il> | 2012-12-06 17:11:59 +0000 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2012-12-19 11:47:14 -0800 |
commit | 7b8157bedce2a7b5f07f7ec98c96cd6bd64a2a84 (patch) | |
tree | 3c9f72f0c193b220d2a10fca2d8e21eeb4ad0d81 /include/linux/kmalloc_sizes.h | |
parent | 2065b38bc2c3fac2b4b6280c977e6abbce4e3b3c (diff) |
mlx4_core: Adjustments to Flow Steering activation logic for SR-IOV
Separate flow steering capability detection from the decision to activate.
For the master (and for native), detect the flow steering capability
in mlx4_dev_cap, but activate the appropriate steering type in a new
function choose_flow_steering() based on detected data.
For VFs, activate flow steering based on what was actually activated
by the master, where that info is obtained via QUERY_HCA. This fixes
the current VF detection which is wrongly based on QUERY_DEV_CAP.
Also, for SR-IOV mode, if flow steering may be activated, do so only
if the max number of QPs per rule is sufficient to satisfy one
subscription per VF. If not, fall back to B0 mode. This is needed to
serve registrations done by L2 network drivers such as mlx4_en and
IPoIB when the network stack attempts to join to multicast groups such
as all-hosts or the IPoIB broadcast group.
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>
Diffstat (limited to 'include/linux/kmalloc_sizes.h')
0 files changed, 0 insertions, 0 deletions