mbox series

[bpf,0/3] selftests/xsk: three small fixes

Message ID 20221115080538.18503-1-magnus.karlsson@gmail.com (mailing list archive)
Headers show
Series selftests/xsk: three small fixes | expand

Message

Magnus Karlsson Nov. 15, 2022, 8:05 a.m. UTC
This patch set contains three small fixes for bugs discovered while
implementing some new tests that will be sent to bpf-next. These are
minor fixes to the xsk test framework that IMHO should not be
backported to any of the stable kernels as no one using them would
care. The tests work fine without these fixes, but when developing new
code and some test fails (or the framework fails), these bugs in the
code are irritating.

Thanks: Magnus

Magnus Karlsson (3):
  selftests/xsk: print correct payload for packet dump
  selftests/xsk: do not close unused file descriptors
  selftests/xsk: print correct error codes when exiting

 tools/testing/selftests/bpf/xsk.c        | 13 +++++++++++--
 tools/testing/selftests/bpf/xskxceiver.c | 24 ++++++++++++------------
 2 files changed, 23 insertions(+), 14 deletions(-)


base-commit: 5fd2a60aecf3a42b14fa371c55b3dbb18b229230
--
2.34.1

Comments

Maciej Fijalkowski Nov. 15, 2022, 12:30 p.m. UTC | #1
On Tue, Nov 15, 2022 at 09:05:35AM +0100, Magnus Karlsson wrote:
> This patch set contains three small fixes for bugs discovered while
> implementing some new tests that will be sent to bpf-next. These are
> minor fixes to the xsk test framework that IMHO should not be
> backported to any of the stable kernels as no one using them would
> care. The tests work fine without these fixes, but when developing new
> code and some test fails (or the framework fails), these bugs in the
> code are irritating.
> 
> Thanks: Magnus

Acked-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>

> 
> Magnus Karlsson (3):
>   selftests/xsk: print correct payload for packet dump
>   selftests/xsk: do not close unused file descriptors
>   selftests/xsk: print correct error codes when exiting
> 
>  tools/testing/selftests/bpf/xsk.c        | 13 +++++++++++--
>  tools/testing/selftests/bpf/xskxceiver.c | 24 ++++++++++++------------
>  2 files changed, 23 insertions(+), 14 deletions(-)
> 
> 
> base-commit: 5fd2a60aecf3a42b14fa371c55b3dbb18b229230
> --
> 2.34.1