DPDK patches and discussions
 help / color / mirror / Atom feed
From: Jack Min <jackmin@nvidia.com>
To: Raslan Darawsheh <rasland@nvidia.com>
Cc: Matan Azrad <matan@nvidia.com>,
	Shahaf Shuler <shahafs@nvidia.com>,
	Slava Ovsiienko <viacheslavo@nvidia.com>,
	Dekel Peled <dekelp@nvidia.com>, Ori Kam <orika@nvidia.com>,
	"dev@dpdk.org" <dev@dpdk.org>,
	"stable@dpdk.org" <stable@dpdk.org>
Subject: Re: [dpdk-dev] [PATCH 2/2] net/mlx5: fix missing RSS expansion of IPv6 frag
Date: Wed, 14 Jul 2021 07:31:09 +0000	[thread overview]
Message-ID: <20210714073029.7lw2kpvk5gdjlq77@nvidia.com> (raw)
In-Reply-To: <DM4PR12MB50548552BEB4793FE37FC44CCF159@DM4PR12MB5054.namprd12.prod.outlook.com>

On Mon, 21-07-12, 08:05, Raslan Darawsheh wrote:

Hey,
> Hi,
> 
> > -----Original Message-----
> > From: dev <dev-bounces@dpdk.org> On Behalf Of Xiaoyu Min
> > Sent: Wednesday, July 7, 2021 5:33 AM
> > To: Matan Azrad <matan@nvidia.com>; Shahaf Shuler
> > <shahafs@nvidia.com>; Slava Ovsiienko <viacheslavo@nvidia.com>; Dekel
> > Peled <dekelp@nvidia.com>; Ori Kam <orika@nvidia.com>
> > Cc: dev@dpdk.org; stable@dpdk.org
> > Subject: [dpdk-dev] [PATCH 2/2] net/mlx5: fix missing RSS expansion of IPv6
> > frag
> > 
> > IPV6_FRAG_EXT item is missed for RSS expansion which causes flows like
> > [1] are wrongly expanded.
> > 
> > Different from other items, IPV6_FRAG_EXT hasn't next field because HW
> > only support to do hash of UDP/TCP for non-fragment.
> > 
> > This MLX5_EXPANSION_IPV6_FRAG_EXT node in RSS expansion graph only
> > helps
> > RSS expansion function to locate right node in graph from which start
> > to expand.
> > 
> > Fixes: 0e5a0d8f7556 ("net/mlx5: support match on IPv6 fragment
> > extension")
> > Cc: stable@dpdk.org
> > 
> > [1]:
> > flow create 0 ingress pattern eth / ipv6 / udp dst is 250 / vxlan-gpe /
> > ipv6 / ipv6_frag_ext / end actions rss level 2 types ip end / end
> > 
> > Signed-off-by: Xiaoyu Min <jackmin@nvidia.com>
> > ---
> >  drivers/net/mlx5/mlx5_flow.c | 8 +++++++-
> >  1 file changed, 7 insertions(+), 1 deletion(-)
> > 
> > diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c
> > index 1b682ac8ed..90b8cf6692 100644
> > --- a/drivers/net/mlx5/mlx5_flow.c
> > +++ b/drivers/net/mlx5/mlx5_flow.c
> > @@ -134,6 +134,7 @@ mlx5_flow_is_rss_expandable_item(const struct
> > rte_flow_item *item)
> >  	case RTE_FLOW_ITEM_TYPE_MPLS:
> >  	case RTE_FLOW_ITEM_TYPE_VXLAN_GPE:
> >  	case RTE_FLOW_ITEM_TYPE_GRE_KEY:
> > +	case RTE_FLOW_ITEM_TYPE_IPV6_FRAG_EXT:
> 
> Adding IPV6_FRAG_EXT to the list of expandable is not accurate,
> Assuming HW support matching on L4 info after frag - which I think it doesn't.
> It will lead that the first frag will get different hash than other frags since it the only one which contain info of L4 header
> This will lead to different RSS spreading and that's not correct.

No, it will not expand to any items because the .next field is empty of entry
MLX5_EXPANSION_IPV6_FRAG_EXT in mlx5_support_expansion[].

-Jack
> 
> Kindest regards,
> Raslan Darawsheh

  reply	other threads:[~2021-07-14  7:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-07  2:32 [dpdk-dev] [PATCH 0/2] fix RSS expansion missing items Xiaoyu Min
2021-07-07  2:32 ` [dpdk-dev] [PATCH 1/2] net/mlx5: fix missing RSS expandable items Xiaoyu Min
2021-07-07  2:32 ` [dpdk-dev] [PATCH 2/2] net/mlx5: fix missing RSS expansion of IPv6 frag Xiaoyu Min
2021-07-12  8:05   ` Raslan Darawsheh
2021-07-14  7:31     ` Jack Min [this message]
2021-07-14  7:47       ` Raslan Darawsheh
2021-07-08  5:38 ` [dpdk-dev] [PATCH 0/2] fix RSS expansion missing items Matan Azrad
2021-07-14  8:55 ` Raslan Darawsheh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210714073029.7lw2kpvk5gdjlq77@nvidia.com \
    --to=jackmin@nvidia.com \
    --cc=dekelp@nvidia.com \
    --cc=dev@dpdk.org \
    --cc=matan@nvidia.com \
    --cc=orika@nvidia.com \
    --cc=rasland@nvidia.com \
    --cc=shahafs@nvidia.com \
    --cc=stable@dpdk.org \
    --cc=viacheslavo@nvidia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).