netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 0/3] nfp: fix SR-IOV deadlock and representor bugs
@ 2017-08-23  6:22 Jakub Kicinski
  2017-08-23  6:22 ` [PATCH net 1/3] nfp: don't hold PF lock while enabling SR-IOV Jakub Kicinski
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Jakub Kicinski @ 2017-08-23  6:22 UTC (permalink / raw)
  To: netdev; +Cc: oss-drivers, Jakub Kicinski

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-08-24  3:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-23  6:22 [PATCH net 0/3] nfp: fix SR-IOV deadlock and representor bugs Jakub Kicinski
2017-08-23  6:22 ` [PATCH net 1/3] nfp: don't hold PF lock while enabling SR-IOV Jakub Kicinski
2017-08-23  6:22 ` [PATCH net 2/3] nfp: make sure representors are destroyed before their lower netdev Jakub Kicinski
2017-08-23  6:22 ` [PATCH net 3/3] nfp: avoid buffer leak when representor is missing Jakub Kicinski
2017-08-24  3:40 ` [PATCH net 0/3] nfp: fix SR-IOV deadlock and representor bugs David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).