patches for DPDK stable branches
 help / color / mirror / Atom feed
From: Ting Xu <ting.xu@intel.com>
To: dev@dpdk.org
Cc: qi.z.zhang@intel.com, qiming.yang@intel.com,
	junfeng.guo@intel.com, Ting Xu <ting.xu@intel.com>,
	stable@dpdk.org
Subject: [PATCH v1] net/ice: fix not support VXLAN RSS hash in raw flow
Date: Fri,  1 Apr 2022 10:23:43 +0800	[thread overview]
Message-ID: <20220401022343.19877-1-ting.xu@intel.com> (raw)

When creating raw flow RSS hash rule for VXLAN tunnel type, a step to set
VXLAN tunnel config is missed. This patch adds this set to support VXLAN
in RSS hash with raw pattern.

Fixes: 1b9c68120a1c ("net/ice: enable protocol agnostic flow offloading in RSS")
Cc: stable@dpdk.org

Signed-off-by: Ting Xu <ting.xu@intel.com>
---
 drivers/net/ice/ice_hash.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/net/ice/ice_hash.c b/drivers/net/ice/ice_hash.c
index afbb357fa3..6b338dc3e1 100644
--- a/drivers/net/ice/ice_hash.c
+++ b/drivers/net/ice/ice_hash.c
@@ -656,6 +656,7 @@ ice_hash_parse_raw_pattern(struct ice_adapter *ad,
 	struct ice_parser *psr;
 	uint8_t *pkt_buf, *msk_buf;
 	uint8_t spec_len, pkt_len;
+	uint16_t udp_port = 0;
 	uint8_t tmp_val = 0;
 	uint8_t tmp_c = 0;
 	int i, j;
@@ -715,6 +716,10 @@ ice_hash_parse_raw_pattern(struct ice_adapter *ad,
 
 	if (ice_parser_create(&ad->hw, &psr))
 		return -rte_errno;
+
+	if (ice_get_open_tunnel_port(&ad->hw, TNL_VXLAN, &udp_port))
+		ice_parser_vxlan_tunnel_set(psr, udp_port, true);
+
 	if (ice_parser_run(psr, pkt_buf, pkt_len, &rslt))
 		return -rte_errno;
 	ice_parser_destroy(psr);
-- 
2.17.1


                 reply	other threads:[~2022-04-01  2:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20220401022343.19877-1-ting.xu@intel.com \
    --to=ting.xu@intel.com \
    --cc=dev@dpdk.org \
    --cc=junfeng.guo@intel.com \
    --cc=qi.z.zhang@intel.com \
    --cc=qiming.yang@intel.com \
    --cc=stable@dpdk.org \
    /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).