On 6/17/2022 6:07 AM, David Marchand wrote:
Introduce a new command and remove the last part of specific port init
from testpmd.

Signed-off-by: David Marchand<david.march...@redhat.com>
---
  app/test-pmd/meson.build          |  1 -
  app/test-pmd/testpmd.c            |  4 --
  doc/guides/nics/ixgbe.rst         |  7 +++
  drivers/net/ixgbe/ixgbe_testpmd.c | 82 +++++++++++++++++++++++++++++++
  4 files changed, 89 insertions(+), 5 deletions(-)

diff --git a/app/test-pmd/meson.build b/app/test-pmd/meson.build
index 69c7595a45..d13e98125e 100644
--- a/app/test-pmd/meson.build
+++ b/app/test-pmd/meson.build
@@ -68,7 +68,6 @@ if dpdk_conf.has('RTE_NET_I40E')
      deps += 'net_i40e'
  endif
  if dpdk_conf.has('RTE_NET_IXGBE')
-    cflags += ['-DRTE_LIBRTE_IXGBE_BYPASS']
      deps += 'net_ixgbe'
  endif
  if dpdk_conf.has('RTE_NET_DPAA')
diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c
index 4e8523f961..e11e2e2cb8 100644
--- a/app/test-pmd/testpmd.c
+++ b/app/test-pmd/testpmd.c
@@ -3949,10 +3949,6 @@ init_port_config(void)
                if (ret != 0)
                        return;
-#if defined RTE_NET_IXGBE && defined RTE_LIBRTE_IXGBE_BYPASS
-               rte_pmd_ixgbe_bypass_init(pid);
-#endif
-
                if (lsc_interrupt && (*port->dev_info.dev_flags & 
RTE_ETH_DEV_INTR_LSC))
                        port->dev_conf.intr_conf.lsc = 1;
                if (rmv_interrupt && (*port->dev_info.dev_flags & 
RTE_ETH_DEV_INTR_RMV))
diff --git a/doc/guides/nics/ixgbe.rst b/doc/guides/nics/ixgbe.rst
index ea4684c2dc..d450fc1ca0 100644
--- a/doc/guides/nics/ixgbe.rst
+++ b/doc/guides/nics/ixgbe.rst
@@ -418,6 +418,13 @@ Set all TCs' TX min relative bandwidth (%) globally for 
all PF and VFs::
testpmd> set tc tx min-bandwidth (port_id) (bw1, bw2, ...) +port config bypass
+~~~~~~~~~~~~~~~~~~
+
+Enable/disable bypass feature::
+
+   port config bypass (port_id) (on|off)
+

Hi Qiming, Wenjun, Yu,

For me changes looks good but this set changes ixgbe bypass configuration in testpmd, instead of it being enabled by default, now an explicit command needs to be issued. This also can affect bypass testing.

Can you please test/comment on the set for the ixgbe bypass? For both functional and dts testing perspective?

Thanks,
ferruh

Reply via email to