mbox series

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

Message ID 20230208102258.29639-1-simon.horman@corigine.com (mailing list archive)
Headers show
Series nfp: fix schedule in atomic context when offloading sa | expand

Message

Simon Horman Feb. 8, 2023, 10:22 a.m. UTC
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(-)

Comments

patchwork-bot+netdevbpf@kernel.org Feb. 10, 2023, 6:40 a.m. UTC | #1
Hello:

This series was applied to netdev/net.git (master)
by Jakub Kicinski <kuba@kernel.org>:

On Wed,  8 Feb 2023 11:22:56 +0100 you wrote:
> 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.
> 
> [...]

Here is the summary with links:
  - [net,1/2] nfp: fix incorrect use of mbox in IPsec code
    https://git.kernel.org/netdev/net/c/7a13a2eef645
  - [net,2/2] nfp: fix schedule in atomic context when offloading sa
    https://git.kernel.org/netdev/net/c/71f814cda659

You are awesome, thank you!