Commit 7d763170 authored by Pavan Chebbi's avatar Pavan Chebbi Committed by Greg Kroah-Hartman
Browse files

bnxt_en: Synchronize tx when xdp redirects happen on same ring



[ Upstream commit 4f81def2 ]

If there are more CPUs than the number of TX XDP rings, multiple XDP
redirects can select the same TX ring based on the CPU on which
XDP redirect is called.  Add locking when needed and use static
key to decide whether to take the lock.

Fixes: f18c2b77 ("bnxt_en: optimized XDP_REDIRECT support")
Signed-off-by: default avatarPavan Chebbi <pavan.chebbi@broadcom.com>
Signed-off-by: default avatarMichael Chan <michael.chan@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 790c1567
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment