[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170823062244.26580-1-jakub.kicinski@netronome.com>
Date: Tue, 22 Aug 2017 23:22:41 -0700
From: Jakub Kicinski <jakub.kicinski@...ronome.com>
To: netdev@...r.kernel.org
Cc: oss-drivers@...ronome.com,
Jakub Kicinski <jakub.kicinski@...ronome.com>
Subject: [PATCH net 0/3] nfp: fix SR-IOV deadlock and representor bugs
This series tackles the bug I've already tried to fix in commit
6d48ceb27af1 ("nfp: allocate a private workqueue for driver work").
I created a separate workqueue to avoid possible deadlock, and
the lockdep error disappeared, coincidentally. The way workqueues
are operating, separate workqueue doesn't necessarily mean separate
thread of execution. Luckily we can safely forego the lock.
Second fix changes the order in which vNIC netdevs and representors
are created/destroyed. The fix is kept small and should be sufficient
for net because of how flower uses representors, a more thorough fix
will be targeted at net-next.
Third fix avoids leaking mapped frame buffers if FW sent a frame with
unknown portid.
Jakub Kicinski (3):
nfp: don't hold PF lock while enabling SR-IOV
nfp: make sure representors are destroyed before their lower netdev
nfp: avoid buffer leak when representor is missing
drivers/net/ethernet/netronome/nfp/nfp_main.c | 16 +++++++---------
.../net/ethernet/netronome/nfp/nfp_net_common.c | 10 +++++-----
drivers/net/ethernet/netronome/nfp/nfp_net_main.c | 22 ++++++++++++++--------
3 files changed, 26 insertions(+), 22 deletions(-)
--
2.11.0
Powered by blists - more mailing lists