From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Wu, Jingjing" Subject: Re: [dpdk-dev v2 2/3] app: enable HW CRC strip by default Date: Wed, 22 Mar 2017 12:24:53 +0000 Message-ID: <9BB6961774997848B5B42BEC655768F810CF9869@SHSMSX103.ccr.corp.intel.com> References: <1490003874-37766-1-git-send-email-jia.guo@intel.com> <1490003874-37766-2-git-send-email-jia.guo@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc: "dev@dpdk.org" , "stable@dpdk.org" To: "Guo, Jia" , "Zhang, Helin" Return-path: Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > -----Original Message----- > From: Wu, Jingjing > Sent: Wednesday, March 22, 2017 8:22 PM > To: Guo, Jia ; Zhang, Helin > Cc: dev@dpdk.org; stable@dpdk.org > Subject: RE: [dpdk-dev v2 2/3] app: enable HW CRC strip by default >=20 >=20 >=20 > > -----Original Message----- > > From: Guo, Jia > > Sent: Monday, March 20, 2017 5:58 PM > > To: Zhang, Helin ; Wu, Jingjing > > > > Cc: dev@dpdk.org; Guo, Jia ; stable@dpdk.org > > Subject: [dpdk-dev v2 2/3] app: enable HW CRC strip by default > > > > Since VF has no ability to disable/enable HW CRC strip for non-DPDK PF > > drivers, and for most case of kernel driver default enable HW CRC > > strip, if disable HW CRC strip in app's rxmode, VF driver will return > > fail and result the VF launch failure. So this patch default to enable = HW CRC > strip to let VF launch successful. > > > > Signed-off-by: Jeff Guo > > Cc: stable@dpdk.org > > --- > > app/test-pmd/testpmd.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index > > e04e215..f01522c 100644 > > --- a/app/test-pmd/testpmd.c > > +++ b/app/test-pmd/testpmd.c > > @@ -284,7 +284,7 @@ struct rte_eth_rxmode rx_mode =3D { > > .hw_vlan_strip =3D 1, /**< VLAN strip enabled. */ > > .hw_vlan_extend =3D 0, /**< Extended VLAN disabled. */ > > .jumbo_frame =3D 0, /**< Jumbo Frame Support disabled. */ > > - .hw_strip_crc =3D 0, /**< CRC stripping by hardware disabled. */ > > + .hw_strip_crc =3D 1, /**< CRC stripping by hardware disabled. */ > > }; > > > You change the default hw_strip_crc to 1, then the argument "crc-strip" o= f > testpmd becomes meaningless. > It's better to change it too. And the comment should be changed to enabled!