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 1E944424A6 for ; Sat, 28 Jan 2023 08:44:50 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1301940A82; Sat, 28 Jan 2023 08:44:50 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 7B2AA40143; Sat, 28 Jan 2023 08:44:47 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1674891887; x=1706427887; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=LQ5INTuHR+aOASyg3OQpyWNTJeR7OEt75O68RZqTTO8=; b=PNCuD1NwQTic/RLsMQBATLuDwHB4bOZJXotKbvrqTmNoTVHOL3goqK9v 3A6OLJ/8WFjUAh23LYvwqNT4r8ETw03lzpsCcVLNP+AZwwwQdAjg4AO4r HDxBGyt00BKxLlVCIM/lVdjq9d1kgsH9XQOrTMv8L2Ut5KZDJgHTMf2RP DjertoLj809QD/WmNnzUX7q7V1rbOAFirl5ZEqR27MHlB62DsABsX00Hm 5R+x03sgKTEIBYWuvu3VbcaiBcjflhCtP/xekkA7DXj0yeOfNPHhYtaMh uZuX4+VGG0CTP6ofkjgAK8747z/4VNjGuIMArm84v96HXb+DwGsCtVzFL A==; X-IronPort-AV: E=McAfee;i="6500,9779,10603"; a="306921589" X-IronPort-AV: E=Sophos;i="5.97,253,1669104000"; d="scan'208";a="306921589" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jan 2023 23:44:46 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10603"; a="837405729" X-IronPort-AV: E=Sophos;i="5.97,253,1669104000"; d="scan'208";a="837405729" Received: from shwdenpg561.ccr.corp.intel.com (HELO dpdk..) ([10.239.252.3]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jan 2023 23:44:42 -0800 From: Kaiwen Deng To: dev@dpdk.org Cc: stable@dpdk.org, yidingx.zhou@intel.com, Kaiwen Deng , Qiming Yang , Wenjun Wu , Wei Zhao , Beilei Xing , Wenzhuo Lu , Wei Dai Subject: [PATCH] net/ixgbe: enable IPv6 mask for generic flow API Date: Sat, 28 Jan 2023 15:15:19 +0800 Message-Id: <20230128071519.42946-1-kaiwenx.deng@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Add IPv6 addr mask and L4 mask support for rte_flow APIs. IPv6 flow rules do not take effect in ixgbe when set IPv6 addr mask and L4 mask to default value as 0xFF. Set IPv6 addr mask and L4 mask as 0 to enable fields can fix this issue. Fixes: 11777435c727 ("net/ixgbe: parse flow director filter") Cc: stable@dpdk.org Signed-off-by: Kaiwen Deng --- drivers/net/ixgbe/ixgbe_flow.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/ixgbe/ixgbe_flow.c b/drivers/net/ixgbe/ixgbe_flow.c index 110ff34fcc..d2ba87df27 100644 --- a/drivers/net/ixgbe/ixgbe_flow.c +++ b/drivers/net/ixgbe/ixgbe_flow.c @@ -1645,6 +1645,10 @@ ixgbe_parse_fdir_filter_normal(struct rte_eth_dev *dev, memset(&rule->mask, 0xFF, sizeof(struct ixgbe_hw_fdir_mask)); rule->mask.vlan_tci_mask = 0; rule->mask.flex_bytes_mask = 0; + rule->mask.dst_port_mask = 0; + rule->mask.src_port_mask = 0; + rule->mask.src_ipv6_mask = 0; + rule->mask.dst_ipv6_mask = 0; /** * The first not void item should be -- 2.34.1