Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-119860

xdp-trafficgen: probe command failed w/o "--interface" [rhel-9]

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • rhel-9.8
    • None
    • xdp-tools
    • None
    • xdp-tools-1.5.7-1.el9
    • No
    • Low
    • 1
    • rhel-net-core-3
    • 2
    • False
    • False
    • Hide

      None

      Show
      None
    • No
    • NST-Core3-25W38
    • Bug Fix
    • Hide
      Cause: The xdp-trafficgen utility contained a bug that prevented the --interface parameter from working correctly.
      Consequence: It was not possible to probe XDP support on a specific interface using xdp-trafficgen
      Fix: The updated version of xdp-tools fixes the bug
      Result: It is now possible to probe XDP support on an interface for xdp-trafficgen
      Show
      Cause: The xdp-trafficgen utility contained a bug that prevented the --interface parameter from working correctly. Consequence: It was not possible to probe XDP support on a specific interface using xdp-trafficgen Fix: The updated version of xdp-tools fixes the bug Result: It is now possible to probe XDP support on an interface for xdp-trafficgen
    • Proposed
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      This is a clone of issue RHEL-105793 to use for version rhel-9.8

      Original description:

      What were you trying to do that didn't work?

      Probe does not work w/o "-i" option.
      Fix the error by adding END_OPTIONS to probe_options.

      The issue was detected in our RHEL on AWS testing. I created a pr for fixing it, please review.

      pr in upstream: https://github.com/xdp-project/xdp-tools/pull/518

      $ sudo xdp-trafficgen probe -i ens5
      Missing required option '--interface'
      Usage: xdp-trafficgen [options]
      Use --help (or -h) to see full option list. 

      What is the impact of this issue to you?

      test-xdp-trafficgen.sh failed with below error.

           [test_udp]                    FAIL
                Missing required option '--interface'
                
                Usage: xdp-trafficgen [options] <hostname>
                Use --help (or -h) to see full option list.
                Test test_udp exited with return code: 1
           [test_tcp]                    FAIL
                Missing required option '--interface'
                
                Usage: xdp-trafficgen [options] <hostname>
                Use --help (or -h) to see full option list.
                Test test_tcp exited with return code: 1
           [test_no_support]             FAIL
                Missing required option '--interface'
                
                Usage: xdp-trafficgen [options] <hostname>
                Use --help (or -h) to see full option list.
                Test test_no_support exited with return code: 1
      

      Please provide the package NVR for which the bug is seen:

      xdp-tools-1.5.5-1.el10.aarch64

      How reproducible is this bug?:

      Steps to reproduce

      1. install xdp-tools
      2. "xdp-trafficgen probe -i ens5" or "xdp-trafficgen probe"

      Expected results

      probe command can work with or without "-i".

      Actual results

      probe command not work because of problem in options handling

              tohojo Toke Høiland-Jørgensen
              watson-automation Watson Automation
              nst-kernel-bugs nst-kernel-bugs
              Prasenjit Mukherjee Prasenjit Mukherjee
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: