[dts] [PATCH V1 1/2] test_plans/rxtx_offload: add tx offload multi_segs setting

Lin, Xueqin xueqin.lin at intel.com
Tue Aug 3 12:24:43 CEST 2021


> -----Original Message-----
> From: Tu, Lijuan <lijuan.tu at intel.com>
> Sent: Tuesday, August 3, 2021 2:47 PM
> To: Lin, Xueqin <xueqin.lin at intel.com>; Jiang, YuX <yux.jiang at intel.com>;
> dts at dpdk.org
> Cc: Jiang, YuX <yux.jiang at intel.com>
> Subject: RE: [dts] [PATCH V1 1/2] test_plans/rxtx_offload: add tx offload
> multi_segs setting
> 
> 
> 
> > -----Original Message-----
> > From: dts <dts-bounces at dpdk.org> On Behalf Of Lin, Xueqin
> > Sent: 2021年8月2日 17:29
> > To: Jiang, YuX <yux.jiang at intel.com>; dts at dpdk.org
> > Cc: Jiang, YuX <yux.jiang at intel.com>
> > Subject: Re: [dts] [PATCH V1 1/2] test_plans/rxtx_offload: add tx
> > offload multi_segs setting
> >
> > > -----Original Message-----
> > > From: dts <dts-bounces at dpdk.org> On Behalf Of Yu Jiang
> > > Sent: Thursday, July 29, 2021 2:16 PM
> > > To: dts at dpdk.org
> > > Cc: Jiang, YuX <yux.jiang at intel.com>
> > > Subject: [dts] [PATCH V1 1/2] test_plans/rxtx_offload: add tx
> > > offload multi_segs setting
> > >
> > > add tx offload multi_segs setting
> > >
> > > Signed-off-by: Yu Jiang <yux.jiang at intel.com>
> > Acked-by: Xueqin Lin <Xueqin.lin at intel.com>
> > > ---
> > >  test_plans/rxtx_offload_test_plan.rst | 56
> > > +++++++++++++++++++++++++++++++++++
> > >  1 file changed, 56 insertions(+)
> > >
> > > diff --git a/test_plans/rxtx_offload_test_plan.rst
> > > b/test_plans/rxtx_offload_test_plan.rst
> > > index 246e1e1..962ee9f 100644
> > > --- a/test_plans/rxtx_offload_test_plan.rst
> > > +++ b/test_plans/rxtx_offload_test_plan.rst
> > > @@ -677,3 +677,59 @@ Test case: FVL Tx offload per-queue setting
> > >
> > >     Note 1: there is no tx_offload per_queue parameter in ixgbe driver,
> > >     so this case is just only for i40e.
> > > +
> > > +Test case: Tx offload multi_segs setting
> > > +======================================================
> > > +
> > > +1. Start testpmd with "--tx-offloads=0x00008000" to enable
> > > +tx_offload
> > > multi_segs ::
> > > +
> > > +    ./testpmd -c 0xf -n 4  -- -i --tx-offloads==0x00008000
> > > +    testpmd> show port 0 tx_offload configuration
> > > +    Tx Offloading Configuration of port 0 :
> > > +      Port : MULTI_SEGS
> > > +      Queue[ 0] : MULTI_SEGS
> > > +
> > > +2. Set fwd to txonly, Set the length of each segment of the TX-ONLY
> > > +packets,
> > > Set the split policy for TX packets, then start to send pkgs::
> > > +
> > > +    testpmd> set fwd txonly
> > > +    testpmd> set txpkts 64,64
> 
> It requires packet size larger than mbuf size, else it won't use multi_segs.

Vector path doesn't support multi-segment packet transmit, only normal path supports multi-segment packet transmit.
Use 'port config 0 tx_offload multi_segs on' to enable multi segment offload first.

> 
> > > +    testpmd> set txsplit rand
> > > +    testpmd> start
> > > +
> > > +3. Check TX-packets will not hang and continue to increase::
> > > +    Wait 15s or more, check TX-packets will continue to increase
> > > +and can be more than 300K
> > > +
> > > +    testpmd> show port stats all
> > > +    testpmd> stop
> > > +    testpmd> quit
> > > +
> > > +4. Start testpmd again without "--tx-offloads", check multi-segs is
> > > +disabled by
> > > default::
> > > +
> > > +    ./testpmd -c 0xf -n 4  -- -i
> > > +    testpmd> show port 0 tx_offload configuration
> > > +    No MULTI_SEGS in Tx Offloading Configuration of ports
> > > +
> > > +5. Enable tx_offload multi_segs ::
> > > +    testpmd> port stop all
> > > +    testpmd> port config 0 tx_offload multi_segs on
> > > +    testpmd> port config 1 tx_offload multi_segs on
> > > +    testpmd> port start all
> > > +    testpmd> show port 0 tx_offload configuration
> > > +    Tx Offloading Configuration of port 0 :
> > > +      Port : MULTI_SEGS
> > > +      Queue[ 0] : MULTI_SEGS
> > > +
> > > +6. Set fwd to txonly, Set the length of each segment of the TX-ONLY
> > > +packets,
> > > Set the split policy for TX packets, then start to send pkgs::
> > > +
> > > +    testpmd> set fwd txonly
> > > +    testpmd> set txpkts 64,64
> > > +    testpmd> set txsplit rand
> > > +    testpmd> start
> > > +    testpmd> show port stats all
> > > +
> > > +7. Check TX-packets will not hang and continue to increase::
> > > +    Wait 15s or more, check TX-packets will continue to increase
> > > +and can be more than 300K
> > > +
> > > +    testpmd> show port stats all
> > > +    testpmd> stop
> > > +    testpmd> quit
> > > --
> > > 2.7.4
> 



More information about the dts mailing list