[Intel-wired-lan] [PATCH net-next v5 1/4] igb: add support of RX network flow classification

'Matt Porter' mporter at konsulko.com
Thu Jun 30 16:16:28 UTC 2016


On Thu, Jun 30, 2016 at 01:20:44AM +0000, Brown, Aaron F wrote:
> > From: Brown, Aaron F
> > Sent: Wednesday, June 29, 2016 1:06 PM
> > To: Matt Porter <mporter at konsulko.com>
> > Cc: Gangfeng <gangfeng.huang at ni.com>; intel-wired-lan at lists.osuosl.org;
> > Ruhao Gao <ruhao.gao at ni.com>
> > Subject: RE: [Intel-wired-lan] [PATCH net-next v5 1/4] igb: add support of RX
> > network flow classification
> > 
> > > From: Matt Porter [mailto:mporter at konsulko.com]
> > > Sent: Wednesday, June 29, 2016 12:13 PM
> > > To: Brown, Aaron F <aaron.f.brown at intel.com>
> > > Cc: Gangfeng <gangfeng.huang at ni.com>; intel-wired-lan at lists.osuosl.org;
> > > Ruhao Gao <ruhao.gao at ni.com>
> > > Subject: Re: [Intel-wired-lan] [PATCH net-next v5 1/4] igb: add support of
> > RX
> > > network flow classification
> > >
> > > On Mon, May 16, 2016 at 10:09:04PM +0000, Brown, Aaron F wrote:
> > > > > From: Intel-wired-lan [mailto:intel-wired-lan-bounces at lists.osuosl.org]
> > > On
> > > > > Behalf Of Gangfeng
> > > > > Sent: Monday, May 9, 2016 2:28 AM
> > > > > To: intel-wired-lan at lists.osuosl.org
> > > > > Cc: Gangfeng Huang <gangfeng.huang at ni.com>; Ruhao Gao
> > > > > <ruhao.gao at ni.com>
> > > > > Subject: [Intel-wired-lan] [PATCH net-next v5 1/4] igb: add support of RX
> > > > > network flow classification
> > > > >
> > > > > From: Gangfeng Huang <gangfeng.huang at ni.com>
> > > > >
> > > > > This patch is meant to allow for RX network flow classification to insert
> > > > > and remove Rx filter by ethtool. Ethtool interface has it's own rules
> > > > > manager
> > > > >
> > > > > Show all filters:
> > > > > $ ethtool -n eth0
> > > > > 4 RX rings available
> > > > > Total 2 rules
> > > > >
> > > > > Signed-off-by: Ruhao Gao <ruhao.gao at ni.com>
> > > > > Signed-off-by: Gangfeng Huang <gangfeng.huang at ni.com>
> > > > > ---
> > > > >  drivers/net/ethernet/intel/igb/igb.h         |  32 +++++
> > > > >  drivers/net/ethernet/intel/igb/igb_ethtool.c | 193
> > > > > +++++++++++++++++++++++++++
> > > > >  drivers/net/ethernet/intel/igb/igb_main.c    |  44 ++++++
> > > > >  3 files changed, 269 insertions(+)
> > > >
> > > > This patch is causing 3/4 of my regression systems to fail.  Driver load
> > > seems normal, but applying an IP address via ifconfig causes the following
> > > splat in dmesg and /var/log/messages:
> > >
> > > Hi Aaron,
> > >
> > > I'm looking at this series on current net-next and am wondering if you
> > > saw this issue with just patch 1 applied or you meant the entire series?
> > 
> > Hi Matt,
> > 
> > My recollection is that I saw it with just patch 1 applied.  And my procedure
> > when I see an issue with a series is to try and isolate it to the individual patch
> > and reply to the one in the series that triggers the issue, so I am pretty sure it
> > was with this patch applied and the rest of the series not applied.
> 
> I was able to apply this (v5 1/4) patch to a recent version of Jeff's next-queue / dev-branch (with a little fuzz) and reproduce the problem on one of the systems that was previously triggering it without any difficulty.  It does occur with just this one patch applied.  This was with the system that has an i211 and a pair of 82580 ports.  I will still try to sort out if it happens with just i211 or the pair of 82580s (leaning towards the i211 as a system with a pair of 82580s and an i210 worked fine) but have been searching for another i211 as the system in question is at the bottom of a rack with a bunch of systems stacked on top of it, making the card cage rather difficult to get to.

Ok, the full oops output made me notice the problem. Can you try the
following untested fix on your failing system? It'll apply against
patch 1/4 and is build tested against the next-queue dev-queue branch.

-Matt

>From 8773d0f09741d7a318cdd96cf5aad2ddb79096e7 Mon Sep 17 00:00:00 2001
From: Matt Porter <mporter at konsulko.com>
Date: Thu, 30 Jun 2016 11:47:50 -0400
Subject: [PATCH] igb: Fix missing lock init in rx network flow classification
 support

"[net-next,v5,1/4] igb: add support of RX network flow classification"
adds a new nfc_lock to each adapter to protect the rx filter hash list.
This lock is not initialized before use which results in intermittent
oopses. Initialize this lock during probe to fix the issue.

Signed-off-by: Matt Porter <mporter at konsulko.com>
---
 drivers/net/ethernet/intel/igb/igb_main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c
index c04b1c2..e5a4949 100644
--- a/drivers/net/ethernet/intel/igb/igb_main.c
+++ b/drivers/net/ethernet/intel/igb/igb_main.c
@@ -3075,6 +3075,7 @@ static int igb_sw_init(struct igb_adapter *adapter)
 				  VLAN_HLEN;
 	adapter->min_frame_size = ETH_ZLEN + ETH_FCS_LEN;
 
+	spin_lock_init(&adapter->nfc_lock);
 	spin_lock_init(&adapter->stats64_lock);
 #ifdef CONFIG_PCI_IOV
 	switch (hw->mac.type) {
-- 
2.7.0



More information about the Intel-wired-lan mailing list