]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/mlx5/mlx5_vlan.c
app/eventdev: add ethernet device setup helpers
[dpdk.git] / drivers / net / mlx5 / mlx5_vlan.c
index 2ab86526424bf46640baa5c4fbd8242756ba0eef..9443e4f0321c9525c928e6d0db1ad908d714271b 100644 (file)
@@ -196,7 +196,8 @@ mlx5_vlan_offload_set(struct rte_eth_dev *dev, int mask)
        unsigned int i;
 
        if (mask & ETH_VLAN_STRIP_MASK) {
-               int hw_vlan_strip = !!dev->data->dev_conf.rxmode.hw_vlan_strip;
+               int hw_vlan_strip = !!(dev->data->dev_conf.rxmode.offloads &
+                                      DEV_RX_OFFLOAD_VLAN_STRIP);
 
                if (!priv->config.hw_vlan_strip) {
                        ERROR("VLAN stripping is not supported");