]> 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)
commite178bbcd030be993a59522f01b642a0db6971690
tree849ccb24c1aab0c26c0970441371e7570409ba0c
parentef77eedf64d8d91a587b096eb230dfe6f1a367b8
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