From: Moti Haimovsky Date: Thu, 8 Feb 2018 11:14:27 +0000 (+0200) Subject: net/mlx4: add CRC stripping capability X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=0ab56bd30c74cbd36758bc92cbce65c4a6988c1b;p=dpdk.git net/mlx4: add CRC stripping capability This patch updates mlx4 Rx offload capabilities to also indicate that Rx CRC stripping is (always) supported. Since the device does not support disabling CRC stripping the PMD silently ignores such requests. Signed-off-by: Moti Haimovsky Acked-by: Adrien Mazarguil --- diff --git a/drivers/net/mlx4/mlx4_rxq.c b/drivers/net/mlx4/mlx4_rxq.c index 39268ea9c7..7a036ed830 100644 --- a/drivers/net/mlx4/mlx4_rxq.c +++ b/drivers/net/mlx4/mlx4_rxq.c @@ -649,7 +649,8 @@ mlx4_rxq_detach(struct rxq *rxq) uint64_t mlx4_get_rx_queue_offloads(struct priv *priv) { - uint64_t offloads = DEV_RX_OFFLOAD_SCATTER; + uint64_t offloads = DEV_RX_OFFLOAD_SCATTER | + DEV_RX_OFFLOAD_CRC_STRIP; if (priv->hw_csum) offloads |= DEV_RX_OFFLOAD_CHECKSUM;