Re: [dpdk-dev] [PATCH v2 1/2] app/testpmd: add commands to test new Rx offload API

2018-03-17 Thread Dai, Wei
> -Original Message- > From: Wu, Jingjing > Sent: Thursday, March 15, 2018 3:41 AM > To: Dai, Wei ; Lu, Wenzhuo > Cc: dev@dpdk.org > Subject: RE: [PATCH v2 1/2] app/testpmd: add commands to test new Rx > offload API > > <...> > > > +static int > > +config_rx_offload(const char *name, uin

Re: [dpdk-dev] [PATCH v2 1/2] app/testpmd: add commands to test new Rx offload API

2018-03-17 Thread Dai, Wei
> Sent: Tuesday, March 13, 2018 5:31 PM > To: Andrew Rybchenko ; Dai, Wei > ; Lu, Wenzhuo ; Wu, Jingjing > > Cc: dev@dpdk.org > Subject: RE: [dpdk-dev] [PATCH v2 1/2] app/testpmd: add commands to test > new Rx offload API > > > > > -Original Message-

Re: [dpdk-dev] [PATCH v2 1/2] app/testpmd: add commands to test new Rx offload API

2018-03-14 Thread Wu, Jingjing
<...> > +static int > +config_rx_offload(const char *name, uint64_t *offload, int on) > +{ > + uint64_t local = *offload; > + > + if (!strcmp(name, "vlan_strip")) { > + if (on) > + local |= DEV_RX_OFFLOAD_VLAN_STRIP; > + else > +

Re: [dpdk-dev] [PATCH v2 1/2] app/testpmd: add commands to test new Rx offload API

2018-03-13 Thread Ananyev, Konstantin
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Andrew Rybchenko > Sent: Tuesday, March 13, 2018 7:21 AM > To: Dai, Wei ; Lu, Wenzhuo ; Wu, > Jingjing > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2 1/2] app/testpmd: add comma

Re: [dpdk-dev] [PATCH v2 1/2] app/testpmd: add commands to test new Rx offload API

2018-03-13 Thread Andrew Rybchenko
On 03/13/2018 09:42 AM, Wei Dai wrote: Add following testpmd run-time commands to support test of new Rx offload API: rx_offload get capability rx_offload get configuration rx_offload enable|disable per_port rx_offload enable|disable per_queue Above last 2 commands should be run when the

[dpdk-dev] [PATCH v2 1/2] app/testpmd: add commands to test new Rx offload API

2018-03-13 Thread Wei Dai
Add following testpmd run-time commands to support test of new Rx offload API: rx_offload get capability rx_offload get configuration rx_offload enable|disable per_port rx_offload enable|disable per_queue Above last 2 commands should be run when the port is stopped. And can be one of "vlan