From patchwork Tue Sep 29 07:48:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chenxu Di X-Patchwork-Id: 79147 X-Patchwork-Delegate: qi.z.zhang@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id EED66A04C0; Tue, 29 Sep 2020 10:09:42 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 33FE51D72D; Tue, 29 Sep 2020 10:09:40 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 39A301D5C9 for ; Tue, 29 Sep 2020 10:09:37 +0200 (CEST) IronPort-SDR: C2aMZmjmAZ+lPwUWfmOUdrmSc71mWf/VYwUVRuKw0cju7SPugK3ML1R19+y8fVre4N6gg7tPu4 +a0YJkHSh4gA== X-IronPort-AV: E=McAfee;i="6000,8403,9758"; a="163018494" X-IronPort-AV: E=Sophos;i="5.77,317,1596524400"; d="scan'208";a="163018494" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2020 01:09:34 -0700 IronPort-SDR: ZfX/cxnBAuWKqKFSH94ou1oEDFscPm4HY1fnaHbowqL3VFCw18Fx5XWqkpoaKd/CfO8ls9Zjsw OFrTph2N5/bw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,317,1596524400"; d="scan'208";a="415289168" Received: from unknown (HELO localhost.localdomain) ([10.239.255.61]) by fmsmga001.fm.intel.com with ESMTP; 29 Sep 2020 01:09:31 -0700 From: Chenxu Di To: dev@dpdk.org Cc: junyux.jiang@intel.com, shougangx.wang@intel.com, Jeff Guo , Haiyue Wang Date: Tue, 29 Sep 2020 07:48:33 +0000 Message-Id: <20200929074835.39854-1-chenxux.di@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [RFC 2/5] net/igc: decouple dependency from superseded structures X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Junyu Jiang The legacy filter API will be removed, the associated rte_eth_ctrl.h will also be removed. This patch replaces these superseded structures by the PMD internal structures. Signed-off-by: Junyu Jiang --- drivers/net/igc/igc_filter.c | 2 +- drivers/net/igc/igc_filter.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/igc/igc_filter.c b/drivers/net/igc/igc_filter.c index 836621d4c..7b6f52a4c 100644 --- a/drivers/net/igc/igc_filter.c +++ b/drivers/net/igc/igc_filter.c @@ -216,7 +216,7 @@ igc_enable_tuple_filter(struct rte_eth_dev *dev, ttqf &= ~IGC_TTQF_MASK_ENABLE; /* TCP flags bits setting. */ - if (info->tcp_flags & RTE_NTUPLE_TCP_FLAGS_MASK) { + if (info->tcp_flags & IGC_NTUPLE_TCP_FLAGS_MASK) { if (info->tcp_flags & RTE_TCP_URG_FLAG) imir_ext |= IGC_IMIREXT_CTRL_URG; if (info->tcp_flags & RTE_TCP_ACK_FLAG) diff --git a/drivers/net/igc/igc_filter.h b/drivers/net/igc/igc_filter.h index 79951504f..34bc0a7e3 100644 --- a/drivers/net/igc/igc_filter.h +++ b/drivers/net/igc/igc_filter.h @@ -16,6 +16,8 @@ extern "C" { #endif +#define IGC_NTUPLE_TCP_FLAGS_MASK 0x3F /**< TCP flags filter can match. */ + int igc_add_ethertype_filter(struct rte_eth_dev *dev, const struct igc_ethertype_filter *filter); int igc_del_ethertype_filter(struct rte_eth_dev *dev,