> From: Larysa Zaremba <[email protected]>
> 
> Referenced commit reduced the scope of the variable pkt, so now it has to
> be reinitialized via pkt_stream_get_next_rx_pkt(), which also increments
> some counters. When the packet is interrupted by the batch ending, pkt
> stream therefore proceeds to the next packet, while xsk ring still contains
> the previous one, this results in a pkt_nb mismatch.
> 
> Decrement the affected counters when packet is interrupted.
> 
> Fixes: 8913e653e9b8 ("selftests/xsk: Iterate over all the sockets in the 
> receive pkts function")
> Reviewed-by: Aleksandr Loktionov <[email protected]>
> Signed-off-by: Larysa Zaremba <[email protected]>
> Link: 
> https://lore.kernel.org/r/[email protected]
> Signed-off-by: Alexei Starovoitov <[email protected]>
> (cherry picked from commit 42e41b2a0afa04ca49ee2725aadf90ccb058ed28)
> 
> Rebase note: applied to xskxceiver.c, which mainline split into
> prog_tests/test_xsk.c in commit 3ab77f35a75e ("selftests/bpf:
> test_xsk: Split xskxceiver"), missing here. The code is the same.
> 
> https://virtuozzo.atlassian.net/browse/VSTOR-153754
> Feature: fix selftests
> 
> Signed-off-by: Eva Kurchatova <[email protected]>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review ยท 
https://sashiko.vzint.dev/#/patchset/[email protected]?part=1


_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to