* [PATCH v1] net/ice: fix not support VXLAN RSS hash in raw flow
@ 2022-04-01 2:23 Ting Xu
0 siblings, 0 replies; only message in thread
From: Ting Xu @ 2022-04-01 2:23 UTC (permalink / raw)
To: dev; +Cc: qi.z.zhang, qiming.yang, junfeng.guo, Ting Xu, stable
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-04-01 2:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-01 2:23 [PATCH v1] net/ice: fix not support VXLAN RSS hash in raw flow Ting Xu
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).