]> git.baikalelectronics.ru Git - kernel.git/commit
qed: fix ll2 establishment during load of RDMA driver
authorManish Chopra <manishc@marvell.com>
Mon, 4 Oct 2021 06:58:51 +0000 (09:58 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Oct 2021 11:55:49 +0000 (12:55 +0100)
commit5b4f4de3259583a90f7b0de2bc6e764c4df8d789
tree849ccb24c1aab0c26c0970441371e7570409ba0c
parent7ca91ecd370cefdbf97f11fb54ff3f1abd4d1168
qed: fix ll2 establishment during load of RDMA driver

If stats ID of a LL2 (light l2) queue exceeds than the total amount
of statistics counters, it may cause system crash upon enabling
RDMA on all PFs.

This patch makes sure that the stats ID of the LL2 queue doesn't exceed
the max allowed value.

Signed-off-by: Manish Chopra <manishc@marvell.com>
Signed-off-by: Ariel Elior <aelior@marvell.com>
Signed-off-by: Shai Malin <smalin@marvell.com>
Signed-off-by: Omkar Kulkarni <okulkarni@marvell.com>
Signed-off-by: Prabhakar Kushwaha <pkushwaha@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_ll2.c