Re: [PATCH net-next v2 4/6] bnxt_en: Add a mutex to synchronize ULP operations
From: Simon Horman <horms@kernel.org>
Date: 2024-05-02 10:05:26
From: Simon Horman <horms@kernel.org>
Date: 2024-05-02 10:05:26
On Tue, Apr 30, 2024 at 05:30:54PM -0700, Michael Chan wrote:
From: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> The current scheme relies heavily on the RTNL lock for all ULP operations between the L2 and the RoCE driver. Add a new en_dev_lock mutex so that the asynchronous ULP_STOP and ULP_START operations can be serialized with bnxt_register_dev() and bnxt_unregister_dev() calls without relying on the RTNL lock. The next patch will remove the RTNL lock from the ULP_STOP and ULP_START calls. Reviewed-by: Selvin Thyparampil Xavier <selvin.xavier@broadcom.com> Reviewed-by: Vikas Gupta <vikas.gupta@broadcom.com> Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com> Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Reviewed-by: Simon Horman <horms@kernel.org>