From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3E344A0507 for ; Fri, 1 Apr 2022 04:22:50 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 30E1A427EC; Fri, 1 Apr 2022 04:22:50 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id D56C64014F; Fri, 1 Apr 2022 04:22:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1648779768; x=1680315768; h=from:to:cc:subject:date:message-id; bh=ZJpoBVRDrjw9WvTpmsuGZ8pVi0Ki0NVxxyOwKsnJDqM=; b=JaNLPs8pgCP2xfkrSb/d+skHVePoe0NizVGOnZXoEM6mMfb5YOdZPodz Cr3EXt38EN7M4tr338sPK9BBe7XGoxlMi+GEKZk0NrDuI6DLOII1Eo6m3 a6bP3ObfTrBGUgxUGM45PP1boj3OJNYLd/C0XLDC9cDrGi1sAWwm57D49 1bwPVO6jo/QeG2rGWOaFwfRJesZ8PG0DTq3yOwi8QfBJ3oc1RbYdWLOgz K57IGUqAfqYXrqCccj/+ecchTT6v0D+tbNOKCo6yj2VITyhQVZwU3P+pV cUIcI0Bm+gZK/f2W8vHUyFY0QkAirt+aC2Pw18i68U9zqQAKFRhIkY699 Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10303"; a="258853617" X-IronPort-AV: E=Sophos;i="5.90,225,1643702400"; d="scan'208";a="258853617" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Mar 2022 19:22:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,225,1643702400"; d="scan'208";a="522602199" Received: from dpdk-xuting-second.sh.intel.com ([10.67.116.150]) by orsmga006.jf.intel.com with ESMTP; 31 Mar 2022 19:22:44 -0700 From: Ting Xu To: dev@dpdk.org Cc: qi.z.zhang@intel.com, qiming.yang@intel.com, junfeng.guo@intel.com, Ting Xu , 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 Message-Id: <20220401022343.19877-1-ting.xu@intel.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org 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 --- 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