Message ID | 1427345601-21059-1-git-send-email-jingjing.wu@intel.com (mailing list archive) |
---|---|
State | Accepted, archived |
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 6144C569D; Thu, 26 Mar 2015 05:53:44 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 8EEF6234 for <dev@dpdk.org>; Thu, 26 Mar 2015 05:53:42 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP; 25 Mar 2015 21:53:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,469,1422950400"; d="scan'208";a="685807317" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by fmsmga001.fm.intel.com with ESMTP; 25 Mar 2015 21:53:40 -0700 Received: from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com [10.239.29.89]) by shvmail01.sh.intel.com with ESMTP id t2Q4rcrS000319; Thu, 26 Mar 2015 12:53:38 +0800 Received: from shecgisg004.sh.intel.com (localhost [127.0.0.1]) by shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id t2Q4raZ0021094; Thu, 26 Mar 2015 12:53:38 +0800 Received: (from wujingji@localhost) by shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id t2Q4raQr021090; Thu, 26 Mar 2015 12:53:36 +0800 From: Jingjing Wu <jingjing.wu@intel.com> To: dev@dpdk.org Date: Thu, 26 Mar 2015 12:53:21 +0800 Message-Id: <1427345601-21059-1-git-send-email-jingjing.wu@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dpdk-dev] [PATCH] e1000: modify mac type checking before flex filter is programmed X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK <dev.dpdk.org> List-Unsubscribe: <http://dpdk.org/ml/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://dpdk.org/ml/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <http://dpdk.org/ml/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Commit Message
Jingjing Wu
March 26, 2015, 4:53 a.m. UTC
This patch changes MAC_TYPE_FILTER_SUP to MAC_TYPE_FILTER_SUP_EXT in
flex filter handling function. It will remove NIC 82576 from flex filter
support.
Signed-off-by: Jingjing Wu <jingjing.wu@intel.com>
---
lib/librte_pmd_e1000/igb_ethdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
> -----Original Message----- > From: Wu, Jingjing > Sent: Thursday, March 26, 2015 12:53 PM > To: dev@dpdk.org > Cc: Wu, Jingjing; Liu, Yong > Subject: [PATCH] e1000: modify mac type checking before flex filter is > programmed > > This patch changes MAC_TYPE_FILTER_SUP to MAC_TYPE_FILTER_SUP_EXT in > flex filter handling function. It will remove NIC 82576 from flex filter > support. > > Signed-off-by: Jingjing Wu <jingjing.wu@intel.com> > --- > lib/librte_pmd_e1000/igb_ethdev.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lib/librte_pmd_e1000/igb_ethdev.c > b/lib/librte_pmd_e1000/igb_ethdev.c > index 49843c1..79ad267 100644 > --- a/lib/librte_pmd_e1000/igb_ethdev.c > +++ b/lib/librte_pmd_e1000/igb_ethdev.c > @@ -2908,7 +2908,7 @@ eth_igb_flex_filter_handle(struct rte_eth_dev *dev, > struct rte_eth_flex_filter *filter; > int ret = 0; > > - MAC_TYPE_FILTER_SUP(hw->mac.type); > + MAC_TYPE_FILTER_SUP_EXT(hw->mac.type); > > if (filter_op == RTE_ETH_FILTER_NOP) > return ret; > -- > 1.9.3 Acked-by: Marvin Liu <yong.liu@intel.com>
2015-03-26 12:53, Jingjing Wu: > This patch changes MAC_TYPE_FILTER_SUP to MAC_TYPE_FILTER_SUP_EXT in > flex filter handling function. It will remove NIC 82576 from flex filter > support. Please, could you explain the goal of this change? Is it a fix? an enhancement? Which behaviour is changed?
Hi, It's a fix. Because we don't support flex filter in NIC 82576 in current e1000 pmd, So add a check here. Only i350 and 82580 support it. So The MAC_TYPE_FILTER_SUP_EXT is used to check whether the MAC type is i350 or 82580. > -----Original Message----- > From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] > Sent: Thursday, March 26, 2015 12:50 AM > To: Wu, Jingjing > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH] e1000: modify mac type checking before flex filter is > programmed > > 2015-03-26 12:53, Jingjing Wu: > > This patch changes MAC_TYPE_FILTER_SUP to MAC_TYPE_FILTER_SUP_EXT in > > flex filter handling function. It will remove NIC 82576 from flex filter > > support. > > Please, could you explain the goal of this change? > Is it a fix? an enhancement? Which behaviour is changed?
2015-03-26 05:08, Liu, Yong: > From: Wu, Jingjing > > This patch changes MAC_TYPE_FILTER_SUP to MAC_TYPE_FILTER_SUP_EXT in > > flex filter handling function. It will remove NIC 82576 from flex filter > > support. > > > > Signed-off-by: Jingjing Wu <jingjing.wu@intel.com> > > Acked-by: Marvin Liu <yong.liu@intel.com> Fixes: 231d43909a31 ("igb: migrate flex filter to new API") Applied, thanks
diff --git a/lib/librte_pmd_e1000/igb_ethdev.c b/lib/librte_pmd_e1000/igb_ethdev.c index 49843c1..79ad267 100644 --- a/lib/librte_pmd_e1000/igb_ethdev.c +++ b/lib/librte_pmd_e1000/igb_ethdev.c @@ -2908,7 +2908,7 @@ eth_igb_flex_filter_handle(struct rte_eth_dev *dev, struct rte_eth_flex_filter *filter; int ret = 0; - MAC_TYPE_FILTER_SUP(hw->mac.type); + MAC_TYPE_FILTER_SUP_EXT(hw->mac.type); if (filter_op == RTE_ETH_FILTER_NOP) return ret;