net/mlx4: add CRC stripping capability
authorMoti Haimovsky <motih@mellanox.com>
Thu, 8 Feb 2018 11:14:27 +0000 (13:14 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 8 Feb 2018 17:42:14 +0000 (18:42 +0100)
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 <motih@mellanox.com>
Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
drivers/net/mlx4/mlx4_rxq.c

index 39268ea..7a036ed 100644 (file)
@@ -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;