[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230208102258.29639-1-simon.horman@corigine.com>
Date: Wed, 8 Feb 2023 11:22:56 +0100
From: Simon Horman <simon.horman@...igine.com>
To: David Miller <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>
Cc: Steffen Klassert <steffen.klassert@...unet.com>,
Herbert Xu <herbert@...dor.apana.org.au>,
Leon Romanovsky <leon@...nel.org>,
Chentian Liu <chengtian.liu@...igine.com>,
Yinjun Zhang <yinjun.zhang@...igine.com>,
Niklas Söderlund <niklas.soderlund@...igine.com>,
netdev@...r.kernel.org, oss-drivers@...igine.com
Subject: [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(-)
--
2.30.2
Powered by blists - more mailing lists