From: Leon Romanovsky <leon@kernel.org>
To: Tony Nguyen <anthony.l.nguyen@intel.com>
Cc: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com,
edumazet@google.com, Dave Ertman <david.m.ertman@intel.com>,
netdev@vger.kernel.org, Gurucharan G <gurucharanx.g@intel.com>
Subject: Re: [PATCH net v4 1/2] ice: Prevent set_channel from changing queues while RDMA active
Date: Mon, 30 Jan 2023 11:12:09 +0200 [thread overview]
Message-ID: <Y9eJ6TasOLEK/LYO@unreal> (raw)
In-Reply-To: <20230127225333.1534783-2-anthony.l.nguyen@intel.com>
On Fri, Jan 27, 2023 at 02:53:32PM -0800, Tony Nguyen wrote:
> From: Dave Ertman <david.m.ertman@intel.com>
>
> The PF controls the set of queues that the RDMA auxiliary_driver requests
> resources from. The set_channel command will alter that pool and trigger a
> reconfiguration of the VSI, which breaks RDMA functionality.
>
> Prevent set_channel from executing when RDMA driver bound to auxiliary
> device.
>
> Adding a locked variable to pass down the call chain to avoid double
> locking the device_lock.
>
> Fixes: 348048e724a0 ("ice: Implement iidc operations")
> Signed-off-by: Dave Ertman <david.m.ertman@intel.com>
> Tested-by: Gurucharan G <gurucharanx.g@intel.com> (A Contingent worker at Intel)
> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
> ---
> drivers/net/ethernet/intel/ice/ice.h | 2 +-
> drivers/net/ethernet/intel/ice/ice_dcb_lib.c | 23 +++++++++-------
> drivers/net/ethernet/intel/ice/ice_dcb_lib.h | 4 +--
> drivers/net/ethernet/intel/ice/ice_ethtool.c | 28 +++++++++++++++++---
> drivers/net/ethernet/intel/ice/ice_main.c | 5 ++--
> 5 files changed, 43 insertions(+), 19 deletions(-)
Honestly, it looks horrid to see holding two locks and "locked"
parameter just to send an event to AUX driver.
Thanks,
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
next prev parent reply other threads:[~2023-01-30 9:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-27 22:53 [PATCH net v4 0/2][pull request] Intel Wired LAN Driver Updates 2023-01-27 (ice) Tony Nguyen
2023-01-27 22:53 ` [PATCH net v4 1/2] ice: Prevent set_channel from changing queues while RDMA active Tony Nguyen
2023-01-30 9:12 ` Leon Romanovsky [this message]
2023-01-27 22:53 ` [PATCH net v4 2/2] ice: Fix broken link in ice NAPI doc Tony Nguyen
2023-01-31 5:10 ` [PATCH net v4 0/2][pull request] Intel Wired LAN Driver Updates 2023-01-27 (ice) patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y9eJ6TasOLEK/LYO@unreal \
--to=leon@kernel.org \
--cc=anthony.l.nguyen@intel.com \
--cc=davem@davemloft.net \
--cc=david.m.ertman@intel.com \
--cc=edumazet@google.com \
--cc=gurucharanx.g@intel.com \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.