From: Alejandro Lucero Date: Fri, 24 Nov 2017 14:26:02 +0000 (+0000) Subject: net/nfp: fix CRC strip check behaviour X-Git-Tag: spdx-start~615 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=d4abcc55c5c6922ab24bb62358b6ba54fb14df87;p=dpdk.git net/nfp: fix CRC strip check behaviour NFP does CRC strip by default and it is not configurable. But, even if an app requests not to do it, that should not be a reason for PMD configuration failure. Fixes: defb9a5dd156 ("nfp: introduce driver initialization") Cc: stable@dpdk.org Signed-off-by: Alejandro Lucero --- diff --git a/drivers/net/nfp/nfp_net.c b/drivers/net/nfp/nfp_net.c index 4aec94d585..fa8ff3cb3c 100644 --- a/drivers/net/nfp/nfp_net.c +++ b/drivers/net/nfp/nfp_net.c @@ -491,10 +491,8 @@ nfp_net_configure(struct rte_eth_dev *dev) if (rxmode->jumbo_frame) hw->mtu = rxmode->max_rx_pkt_len; - if (rxmode->hw_strip_crc) { - PMD_INIT_LOG(INFO, "strip CRC not supported"); - return -EINVAL; - } + if (!rxmode->hw_strip_crc) + PMD_INIT_LOG(INFO, "HW does strip CRC and it is not configurable"); if (rxmode->enable_scatter) { PMD_INIT_LOG(INFO, "Scatter not supported");