Re: [PATCH 2/2] RDMA/bnxt_re: Use auxiliary driver interface

From
Ajit Khaparde <ajit.khaparde@broadcom.com>
Date
2022-07-26 14:32:14
Also in
linux-rdma, lkml
Reply to
Leon Romanovsky, 2022-07-26
On Mon, Jul 25, 2022 at 10:36 PM Leon Romanovsky [off-list ref] wrote:
On Mon, Jul 25, 2022 at 09:58:30PM -0700, Ajit Khaparde wrote:
quoted
On Mon, Jul 25, 2022 at 5:15 AM Leon Romanovsky [off-list ref] wrote:
quoted
On Sun, Jul 24, 2022 at 04:14:58PM -0700, Ajit Khaparde wrote:
quoted
Use auxiliary driver interface for driver load, unload ROCE driver.
The driver does not need to register the interface using the netdev
notifier anymore. Removed the bnxt_re_dev_list which is not needed.
Currently probe, remove and shutdown ops have been implemented for
the auxiliary device.

BUG: DCSG01157556
Change-Id: Ice54f076c1c4fc26d4ee7e77a5dcd1ca21cf4cd0
Please remove the lines above.
Apologies for missing that.
quoted
quoted
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
---
 drivers/infiniband/hw/bnxt_re/bnxt_re.h       |   9 +-
 drivers/infiniband/hw/bnxt_re/main.c          | 405 +++++++-----------
 drivers/net/ethernet/broadcom/bnxt/bnxt.c     |  64 ---
 drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c |  65 +++
 drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.h |   3 +
 5 files changed, 232 insertions(+), 314 deletions(-)
<...>
quoted
+static DEFINE_IDA(bnxt_aux_dev_ids);
+
 static int bnxt_register_dev(struct bnxt_en_dev *edev, unsigned int ulp_id,
                           struct bnxt_ulp_ops *ulp_ops, void *handle)
I would expect that almost all code in bnxt_ulp.c will go after this change.
I agree. My plan was to get these QA tested, initial Aux Bus changes
in this release with a follow on series to clean this up further.
Does that sound reasonable?
No, please prepare complete series and we will review it.
There is much harder to do it when the change is partial.
I am fine with that. Thanks
Thanks
quoted
Thanks for the feedback.

Thanks
Ajit
quoted
Thanks

Attachments

Thread (35 messages) 35 messages, 4 authors, last reply 2022-11-09
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help