Skip to content

Commit

Permalink
RDMA/bnxt_re: Use auxiliary driver interface
Browse files Browse the repository at this point in the history
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.
Also remove exccessve validation checks for rdev.

Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Andy Gospodarek <andrew.gospodarek@broadcom.com>
Reviewed-by: Selvin Xavier <selvin.xavier@broadcom.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
  • Loading branch information
ajitkhaparde committed Feb 2, 2023
1 parent d80d88b commit 6d75814
Show file tree
Hide file tree
Showing 4 changed files with 132 additions and 304 deletions.
9 changes: 1 addition & 8 deletions drivers/infiniband/hw/bnxt_re/bnxt_re.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,6 @@ struct bnxt_re_ring_attr {
u8 mode;
};

struct bnxt_re_work {
struct work_struct work;
unsigned long event;
struct bnxt_re_dev *rdev;
struct net_device *vlan_dev;
};

struct bnxt_re_sqp_entries {
struct bnxt_qplib_sge sge;
u64 wrid;
Expand Down Expand Up @@ -132,6 +125,7 @@ struct bnxt_re_dev {
#define BNXT_RE_FLAG_ERR_DEVICE_DETACHED 17
#define BNXT_RE_FLAG_ISSUE_ROCE_STATS 29
struct net_device *netdev;
struct notifier_block nb;
unsigned int version, major, minor;
struct bnxt_qplib_chip_ctx *chip_ctx;
struct bnxt_en_dev *en_dev;
Expand Down Expand Up @@ -194,5 +188,4 @@ static inline struct device *rdev_to_dev(struct bnxt_re_dev *rdev)
return &rdev->ibdev.dev;
return NULL;
}

#endif

0 comments on commit 6d75814

Please sign in to comment.