aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorRatheesh Kannoth <[email protected]>2022-11-07 09:05:05 +0530
committerPaolo Abeni <[email protected]>2022-11-08 13:43:46 +0100
commitf0dfc4c88ef39be0ba736aa0ce6119263fc19aeb (patch)
treecd03f12f8d4d0b93374d9529b173bea1e8e1fd8b /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parentb0c09c7f08c2467b2089bdf4adb2fbbc2464f4a8 (diff)
octeontx2-pf: Fix SQE threshold checking
Current way of checking available SQE count which is based on HW updated SQB count could result in driver submitting an SQE even before CQE for the previously transmitted SQE at the same index is processed in NAPI resulting losing SKB pointers, hence a leak. Fix this by checking a consumer index which is updated once CQE is processed. Fixes: 3ca6c4c882a7 ("octeontx2-pf: Add packet transmission support") Signed-off-by: Ratheesh Kannoth <[email protected]> Reviewed-by: Sunil Kovvuri Goutham <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions