Skip to content

nfp: fix schedule in atomic context when offloading sa

Simon Horman netdev 1 version Applied

Status from this message: This series was applied to netdev/net.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2nfp: fix incorrect use of mbox in IPsec codedrivers/net/ethernet/netronome/nfp/crypto/ipsec.c drivers/net/ethernet/netronome/nfp/nfp_net_ctrl.h+12 -40 repliesApplied
2/2nfp: fix schedule in atomic context when offloading sadrivers/net/ethernet/netronome/nfp/crypto/ipsec.c drivers/net/ethernet/netronome/nfp/nfp_net.h drivers/net/ethernet/netronome/nfp/nfp_net_common.c+87 -700 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net 0/2] nfp: fix schedule in atomic context when offloading sa

Yinjun Zhang says:

IPsec offloading callbacks may be called in atomic context, sleep is not allowed in the implementation. Now use workqueue mechanism to avoid this issue.

Extend existing workqueue mechanism for multicast configuration only to universal use, so that all configuring through mailbox asynchoronously can utilize it.

Also fix another two incorrect use of mailbox in IPsec:
1. Need lock for race condition when accessing mbox
2. Offset of mbox access should depends on tlv caps

Yinjun Zhang (2):
nfp: fix incorrect use of mbox in IPsec code
nfp: fix schedule in atomic context when offloading sa

 .../net/ethernet/netronome/nfp/crypto/ipsec.c |  39 ++++---
 drivers/net/ethernet/netronome/nfp/nfp_net.h  |  25 +++-
 .../ethernet/netronome/nfp/nfp_net_common.c   | 108 +++++++++---------
 .../net/ethernet/netronome/nfp/nfp_net_ctrl.h |   1 -
 4 files changed, 99 insertions(+), 74 deletions(-)
Signature · 1 line
2.30.2