]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/mlx5/mlx5_vlan.c
net/mlx5: fix VLAN configuration after port stop
[dpdk.git] / drivers / net / mlx5 / mlx5_vlan.c
index 6fc315ef31f6ea7ae672782c7d6b447324e8336c..198a69e3c0bc8d4e4f4427299ae8156845f00749 100644 (file)
@@ -127,6 +127,11 @@ priv_vlan_strip_queue_set(struct priv *priv, uint16_t idx, int on)
 
        DEBUG("set VLAN offloads 0x%x for port %d queue %d",
              vlan_offloads, rxq->port_id, idx);
+       if (!rxq_ctrl->ibv) {
+               /* Update related bits in RX queue. */
+               rxq->vlan_strip = !!on;
+               return;
+       }
        mod = (struct ibv_wq_attr){
                .attr_mask = IBV_WQ_ATTR_FLAGS,
                .flags_mask = IBV_WQ_FLAGS_CVLAN_STRIPPING,