aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorMaciej Fijalkowski <[email protected]>2022-03-28 16:21:22 +0200
committerAlexei Starovoitov <[email protected]>2022-03-28 19:56:28 -0700
commit0ec1713009c5cc24244c918def1cd14080be27e3 (patch)
treed33c42d23720d1ce9752a29d58285eb2ec9ea721 /lib/mpi/mpiutil.c
parent30d19d57d513821c58de4556e7445982ed22b923 (diff)
ice: xsk: Stop Rx processing when ntc catches ntu
This can happen with big budget values and some breakage of re-filling descriptors as we do not clear the entry that ntu is pointing at the end of ice_alloc_rx_bufs_zc. So if ntc is at ntu then it might be the case that status_error0 has an old, uncleared value and ntc would go over with processing which would result in false results. Break Rx loop when ntc == ntu to avoid broken behavior. Fixes: 3876ff525de7 ("ice: xsk: Handle SW XDP ring wrap and bump tail more often") Signed-off-by: Maciej Fijalkowski <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions