Amir Vadai a229e488ac net/mlx4_en: Disable RFS when running in SRIOV mode
Commit 37706996 "mlx4_en: fix allocation of CPU affinity reverse-map" fixed
a bug when mlx4_dev->caps.comp_pool is larger from the device rx rings, but
introduced a regression.

When the mlx4_core is activating its "legacy mode" (e.g when running in SRIOV
mode) w.r.t to EQs/IRQs usage, comp_pool becomes zero and we're crashing on
divide by zero alloc_cpu_rmap.

Fix that by enabling RFS only when running in non-legacy mode.

Reported-by: Yan Burman <yanb@mellanox.com>
Cc: Kleber Sacilotto de Souza <klebers@linux.vnet.ibm.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-03-07 15:52:04 -05:00
..
2012-12-03 11:16:10 -08:00
2013-02-21 13:41:04 -08:00
2013-02-21 13:41:04 -08:00
2013-02-21 13:41:04 -08:00
2013-02-27 19:10:18 -08:00
2013-02-21 12:05:51 -08:00
2012-12-28 15:24:19 -08:00
2013-01-14 15:13:39 -05:00
2013-02-27 19:10:18 -08:00
2013-01-08 17:56:10 -08:00
2013-01-20 15:48:14 -08:00