net/octeontx2: add device start operation
[dpdk.git] / drivers / net / octeontx2 / otx2_flow_parse.c
index 7f997ab..1940cc6 100644 (file)
@@ -938,9 +938,11 @@ otx2_flow_parse_actions(struct rte_eth_dev *dev,
        if (mark)
                flow->npc_action |= (uint64_t)mark << 40;
 
-       if (rte_atomic32_read(&npc->mark_actions) == 1)
+       if (rte_atomic32_read(&npc->mark_actions) == 1) {
                hw->rx_offload_flags |=
                        NIX_RX_OFFLOAD_MARK_UPDATE_F;
+               otx2_eth_set_rx_function(dev);
+       }
 
 set_pf_func:
        /* Ideally AF must ensure that correct pf_func is set */