summaryrefslogtreecommitdiffstats
path: root/drivers/soc
diff options
context:
space:
mode:
authorMichael Chan <michael.chan@broadcom.com>2023-02-10 12:31:55 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-02-22 12:47:21 +0100
commit321a0eef571f43520a079e056d61cb904e19642f (patch)
treec6bde05dd9af990ae5269cc4765bede6fc5723af /drivers/soc
parent90d7d4c26ffa9ce2461a4e45fa39605a09ca861e (diff)
downloadlinux-stable-321a0eef571f43520a079e056d61cb904e19642f.tar.gz
linux-stable-321a0eef571f43520a079e056d61cb904e19642f.tar.bz2
linux-stable-321a0eef571f43520a079e056d61cb904e19642f.zip
bnxt_en: Fix mqprio and XDP ring checking logic
commit 2038cc592811209de20c4e094ca08bfb1e6fbc6c upstream. In bnxt_reserve_rings(), there is logic to check that the number of TX rings reserved is enough to cover all the mqprio TCs, but it fails to account for the TX XDP rings. So the check will always fail if there are mqprio TCs and TX XDP rings. As a result, the driver always fails to initialize after the XDP program is attached and the device will be brought down. A subsequent ifconfig up will also fail because the number of TX rings is set to an inconsistent number. Fix the check to properly account for TX XDP rings. If the check fails, set the number of TX rings back to a consistent number after calling netdev_reset_tc(). Fixes: 674f50a5b026 ("bnxt_en: Implement new method to reserve rings.") Reviewed-by: Hongguang Gao <hongguang.gao@broadcom.com> Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/soc')
0 files changed, 0 insertions, 0 deletions