nfp: fix schedule in atomic context when offloading sa
Status from this message: This series was applied to netdev/net.git (master)
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 All 2 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | nfp: fix incorrect use of mbox in IPsec codedrivers/ drivers/ | +12 | 0 replies | Applied |
| 2/2 | nfp: fix schedule in atomic context when offloading sadrivers/ drivers/ drivers/ | +87 | 0 replies | Applied |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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