Hi, > -----Original Message----- > From: dev <dev-boun...@dpdk.org> On Behalf Of Xiaoyu Min > Sent: Wednesday, July 24, 2019 2:32 PM > To: Shahaf Shuler <shah...@mellanox.com>; Yongseok Koh > <ys...@mellanox.com>; Slava Ovsiienko <viachesl...@mellanox.com> > Cc: dev@dpdk.org; Jack Min <jack...@mellanox.com> > Subject: [dpdk-dev] [PATCH] net/mlx5: fix RSS expand for IP-in-IP > > The RSS expand function for IP-in-IP tunnel type is missed, > which leads to create following flow failed: > > flow create 0 ingress pattern eth / ipv4 proto is 4 / > ipv4 / udp / end actions rss queues 0 1 end level 2 > types ip ipv4-other udp ipv4 ipv4-frag end / > mark id 221 / count / end > > In order to make RSS expand function working correctly, > now the way to check whether a IP tunnel existing is to > check whether there is the second IPv4/IPv6 item and whether the > first IPv4/IPv6 item's next protocl is IPPROTO_IPIP/IPPROTO_IPV6. > For example: > ... pattern eth / ipv4 proto is 4 / ipv4 / .... > > Fixes: 5e33bebdd8d3 ("net/mlx5: support IP-in-IP tunnel") > Cc: jack...@mellanox.com > > Signed-off-by: Xiaoyu Min <jack...@mellanox.com> > --- > drivers/net/mlx5/mlx5_flow.c | 8 +++- > drivers/net/mlx5/mlx5_flow_dv.c | 79 ++++++++++++++++++++------------- > 2 files changed, 53 insertions(+), 34 deletions(-) >
Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh