mbox series

[bpf-next,v2,0/2] selftests/xsk: Enhance traffic validation and batch size support

Message ID 20240627043548.221724-1-tushar.vyavahare@intel.com (mailing list archive)
Headers show
Series selftests/xsk: Enhance traffic validation and batch size support | expand

Message

Tushar Vyavahare June 27, 2024, 4:35 a.m. UTC
This patch series introduces enhancements to xsk selftests, focusing on
dynamic batch size configurations and robust traffic validation.

Patch 1/2: Robust traffic validation post-ring size adjustment

- Fixed the flow in HW_SW_MIN_RING_SIZE and HW_SW_MAX_RING_SIZE test cases
  to validate Tx/Rx traffic by checking the return value of
  set_ring_size(), preventing premature test termination.

Patch 2/2: Dynamic batch size configuration

- Overcomes the 2K batch size limit by introducing dynamic adjustments for
  fill_size and comp_size.
- Update HW_SW_MAX_RING_SIZE test case that evaluates the maximum ring
  sizes for AF_XDP, ensuring its reliability under maximum ring utilization.

Ensure the xsk selftests patches improve overall reliability and
efficiency, allowing the system to handle larger batch sizes and
effectively validate traffic after configuration changes.

Tushar Vyavahare (2):
  selftests/xsk: Ensure traffic validation proceeds after ring size
    adjustment in xskxceiver
  selftests/xsk: Enhance batch size support with dynamic configurations

 tools/testing/selftests/bpf/xskxceiver.c | 40 +++++++++++++++++-------
 tools/testing/selftests/bpf/xskxceiver.h |  2 ++
 2 files changed, 31 insertions(+), 11 deletions(-)

Comments

Maciej Fijalkowski July 1, 2024, 4:28 p.m. UTC | #1
On Thu, Jun 27, 2024 at 04:35:46AM +0000, Tushar Vyavahare wrote:
> This patch series introduces enhancements to xsk selftests, focusing on
> dynamic batch size configurations and robust traffic validation.
> 
> Patch 1/2: Robust traffic validation post-ring size adjustment
> 
> - Fixed the flow in HW_SW_MIN_RING_SIZE and HW_SW_MAX_RING_SIZE test cases
>   to validate Tx/Rx traffic by checking the return value of
>   set_ring_size(), preventing premature test termination.
> 
> Patch 2/2: Dynamic batch size configuration
> 
> - Overcomes the 2K batch size limit by introducing dynamic adjustments for
>   fill_size and comp_size.
> - Update HW_SW_MAX_RING_SIZE test case that evaluates the maximum ring
>   sizes for AF_XDP, ensuring its reliability under maximum ring utilization.
> 
> Ensure the xsk selftests patches improve overall reliability and
> efficiency, allowing the system to handle larger batch sizes and
> effectively validate traffic after configuration changes.

v1..v2 diff?

> 
> Tushar Vyavahare (2):
>   selftests/xsk: Ensure traffic validation proceeds after ring size
>     adjustment in xskxceiver
>   selftests/xsk: Enhance batch size support with dynamic configurations
> 
>  tools/testing/selftests/bpf/xskxceiver.c | 40 +++++++++++++++++-------
>  tools/testing/selftests/bpf/xskxceiver.h |  2 ++
>  2 files changed, 31 insertions(+), 11 deletions(-)
> 
> -- 
> 2.34.1
> 
>