i40evf: report error for unsupported CRC stripping config
authorBjörn Töpel <bjorn.topel@intel.com>
Fri, 22 Apr 2016 05:39:22 +0000 (07:39 +0200)
committerBruce Richardson <bruce.richardson@intel.com>
Fri, 6 May 2016 13:51:22 +0000 (15:51 +0200)
commit1bbcc5d21129168a212e7d755751b0d4742d20d9
tree7f585351adaa3b5f88bd69c38c204d3468ee0fd0
parent39c722626590632411252114beb5359548031775
i40evf: report error for unsupported CRC stripping config

On hosts running a non-DPDK PF driver, 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 non-DPDK PF kernel driver,
and returns an error, if HW CRC stripping was not requested in the port
configuration.

Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Acked-by: Helin Zhang <helin.zhang@intel.com>
drivers/net/i40e/i40e_ethdev_vf.c