[dpdk-dev] [PATCH v2] i40evf: Report error if HW CRC strip is disabled for Linux PF hosts

2016-04-22 Thread Zhang, Helin
> -Original Message- > From: Topel, Bjorn > Sent: Friday, April 22, 2016 1:17 PM > To: Zhang, Helin ; dev at dpdk.org > Cc: david.marchand at 6wind.com; Wu, Jingjing > Subject: RE: [PATCH v2] i40evf: Report error if HW CRC strip is disabled for > Linux > PF hosts > > >> >> + /*

[dpdk-dev] [PATCH v2] i40evf: Report error if HW CRC strip is disabled for Linux PF hosts

2016-04-22 Thread Topel, Bjorn
>> >> + /* For Linux PF hosts, VF has no ability to disable HW CRC strip, >> >> + * and is implicitly enabled by the PF. >> >> + */ >> >> + if (!conf->rxmode.hw_strip_crc) { >> >> + vf = I40EVF_DEV_PRIVATE_TO_VF(dev->data->dev_private); >> >> + if

[dpdk-dev] [PATCH v2] i40evf: Report error if HW CRC strip is disabled for Linux PF hosts

2016-04-22 Thread Topel, Bjorn
>> + /* For Linux PF hosts, VF has no ability to disable HW CRC strip, >> + * and is implicitly enabled by the PF. >> + */ >> + if (!conf->rxmode.hw_strip_crc) { >> + vf = I40EVF_DEV_PRIVATE_TO_VF(dev->data->dev_private); >> + if ((vf->version_major ==

[dpdk-dev] [PATCH v2] i40evf: Report error if HW CRC strip is disabled for Linux PF hosts

2016-04-22 Thread Zhang, Helin
> -Original Message- > From: Topel, Bjorn > Sent: Thursday, April 21, 2016 11:03 PM > To: dev at dpdk.org > Cc: david.marchand at 6wind.com; Zhang, Helin ; Wu, > Jingjing ; Topel, Bjorn > Subject: [PATCH v2] i40evf: Report error if HW CRC strip is disabled for > Linux PF > hosts > >

[dpdk-dev] [PATCH v2] i40evf: Report error if HW CRC strip is disabled for Linux PF hosts

2016-04-21 Thread Björn Töpel
On Linux PF hosts, the VF has no means of changing the HW CRC strip setting for a RX queue. It's implicitly enabled. This patch checks if the host is running a Linux PF kernel driver, and returns an error, if HW CRC stripping was disabled. Signed-off-by: Bj?rn T?pel ---