qed: Correct MSI-x for storage
authorMintz, Yuval <Yuval.Mintz@cavium.com>
Wed, 5 Apr 2017 18:20:11 +0000 (21:20 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Apr 2017 20:35:27 +0000 (13:35 -0700)
commit2f78227874754b1e10cd348fd6e7693b0dabb3f6
tree3fc20988ef2bf5821174348423290e2f9703b610
parent9e9623abdaf749138d5f78c40f74d2093f8c90ae
qed: Correct MSI-x for storage

When qedr is enabled, qed would try dividing the msi-x vectors between
L2 and RoCE, starting with L2 and providing it with sufficient vectors
for its queues.

Problem is qed would also do that for storage partitions, and as those
don't need queues it would lead qed to award those partitions with 0
msi-x vectors, causing them to believe theye're using INTa and
preventing them from operating.

Fixes: 51ff17251c9c ("qed: Add support for RoCE hw init")
Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_main.c