]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/octeontx2/otx2_flow_parse.c
net/ionic: fix address handling in Tx
[dpdk.git] / drivers / net / octeontx2 / otx2_flow_parse.c
index 476195d6344a003e4a2a0f1d04d4cea13945e712..e9b940f6c0ef0522b081e4c112bde6a7ec2d5b03 100644 (file)
@@ -1090,7 +1090,10 @@ otx2_flow_parse_actions(struct rte_eth_dev *dev,
 
 set_pf_func:
        /* Ideally AF must ensure that correct pf_func is set */
-       flow->npc_action |= (uint64_t)pf_func << 4;
+       if (attr->egress)
+               flow->npc_action |= (uint64_t)pf_func << 48;
+       else
+               flow->npc_action |= (uint64_t)pf_func << 4;
 
        return 0;