[dpdk-dev] [PATCH v3] net/i40e: fix queue region issue in RSS flow
Wang, ShougangX
shougangx.wang at intel.com
Sun Jun 28 08:51:10 CEST 2020
Hi, Wei
> -----Original Message-----
> From: Zhao1, Wei <wei.zhao1 at intel.com>
> Sent: Sunday, June 28, 2020 2:02 PM
> To: Wang, ShougangX <shougangx.wang at intel.com>; dev at dpdk.org
> Cc: Xing, Beilei <beilei.xing at intel.com>; Guo, Jia <jia.guo at intel.com>; Wang,
> ShougangX <shougangx.wang at intel.com>; stable at dpdk.org
> Subject: RE: [dpdk-dev] [PATCH v3] net/i40e: fix queue region issue in RSS
> flow
>
> Hi, shougang
>
[snip]
> > diff --git a/drivers/net/i40e/i40e_flow.c
> > b/drivers/net/i40e/i40e_flow.c index 7e64ae53a..2f937567b 100644
> > --- a/drivers/net/i40e/i40e_flow.c
> > +++ b/drivers/net/i40e/i40e_flow.c
> > @@ -4625,6 +4625,34 @@ i40e_flow_parse_rss_action(struct rte_eth_dev
> > *dev,
> > uint32_t index = 0;
> > uint64_t hf_bit = 1;
> >
> > + static const struct {
> > + uint64_t rss_type;
> > + enum i40e_filter_pctype pctype;
> > + } pctype_match_table[] = {
> > + {ETH_RSS_FRAG_IPV4,
> > + I40E_FILTER_PCTYPE_FRAG_IPV4},
> > + {ETH_RSS_NONFRAG_IPV4_TCP,
> > + I40E_FILTER_PCTYPE_NONF_IPV4_TCP},
> > + {ETH_RSS_NONFRAG_IPV4_UDP,
> > + I40E_FILTER_PCTYPE_NONF_IPV4_UDP},
> > + {ETH_RSS_NONFRAG_IPV4_SCTP,
> > + I40E_FILTER_PCTYPE_NONF_IPV4_SCTP},
> > + {ETH_RSS_NONFRAG_IPV4_OTHER,
> > + I40E_FILTER_PCTYPE_NONF_IPV4_OTHER},
> > + {ETH_RSS_FRAG_IPV6,
> > + I40E_FILTER_PCTYPE_FRAG_IPV6},
> > + {ETH_RSS_NONFRAG_IPV6_TCP,
> > + I40E_FILTER_PCTYPE_NONF_IPV6_TCP},
> > + {ETH_RSS_NONFRAG_IPV6_UDP,
> > + I40E_FILTER_PCTYPE_NONF_IPV6_UDP},
> > + {ETH_RSS_NONFRAG_IPV6_SCTP,
> > + I40E_FILTER_PCTYPE_NONF_IPV6_SCTP},
> > + {ETH_RSS_NONFRAG_IPV6_OTHER,
> > + I40E_FILTER_PCTYPE_NONF_IPV6_OTHER},
> > + {ETH_RSS_L2_PAYLOAD,
> > + I40E_FILTER_PCTYPE_L2_PAYLOAD},
> > + };
> > +
>
> For x772, the pctype for UDP is different, this table should be different also.
>
> if (hw->mac.type == I40E_MAC_X722)
> ..............................
Thanks for your review, I will perfect this table.
Thanks.
Shougang
More information about the dev
mailing list