]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/mlx5/mlx5_vlan.c
net/mlx5: remove Tx gather support
[dpdk.git] / drivers / net / mlx5 / mlx5_vlan.c
index ea7af1e42079b6c5c12f5db1e92ae15415e6dbc1..ff40538e307a7b53383ef06307d64dede7b8a60e 100644 (file)
@@ -218,7 +218,7 @@ 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.hw_vlan_strip;
 
                if (!priv->hw_vlan_strip) {
                        ERROR("VLAN stripping is not supported");