mlx4_core: Allow choosing flow steering mode
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Thu, 6 Dec 2012 17:12:00 +0000 (17:12 +0000)
committerRoland Dreier <roland@purestorage.com>
Wed, 19 Dec 2012 19:47:22 +0000 (11:47 -0800)
commit3c439b5586e9200f7e6287ee77c175c4d5b0eeed
tree8194cef0f549fbb81aa70985401220c91f228ee7
parent7b8157bedce2a7b5f07f7ec98c96cd6bd64a2a84
mlx4_core: Allow choosing flow steering mode

Device managed flow steering will be enabled only under administrator
directive provided through setting the existing module parameter
log_num_mgm_entry_size to -1 (if the device actually supports flow
steering).  If flow steering isn't requested or not available, the
driver will use the value of log_num_mgm_entry_size and B0 steering.

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
drivers/net/ethernet/mellanox/mlx4/mcg.c
drivers/net/ethernet/mellanox/mlx4/mlx4.h
include/linux/mlx4/device.h