From: Kiran Kumar K Date: Sat, 10 Oct 2020 06:33:10 +0000 (+0530) Subject: net/octeontx2: fix RSS flow create X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=617c97d2e2924e640745442080c375c95568a2e6;p=dpdk.git net/octeontx2: fix RSS flow create While creating flow with action type RSS, action type is not being set to RSS, and action type is being set to unicast. Therefore it breaks RSS functionality. This patch add changes to program the RSS action properly. Fixes: 4092e4845dc1 ("net/octeontx2: add flow operations") Cc: stable@dpdk.org Signed-off-by: Kiran Kumar K --- diff --git a/drivers/net/octeontx2/otx2_flow.c b/drivers/net/octeontx2/otx2_flow.c index 9b32b2accf..e07cea7093 100644 --- a/drivers/net/octeontx2/otx2_flow.c +++ b/drivers/net/octeontx2/otx2_flow.c @@ -272,6 +272,8 @@ flow_program_rss_action(struct rte_eth_dev *eth_dev, if (rc) return rc; + flow->npc_action &= (~(0xfULL)); + flow->npc_action |= NIX_RX_ACTIONOP_RSS; flow->npc_action |= ((uint64_t)(alg_idx & NIX_RSS_ACT_ALG_MASK) << NIX_RSS_ACT_ALG_OFFSET) |