diff options
| author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2021-06-04 15:36:08 +0000 |
|---|---|---|
| committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2021-06-18 21:20:08 +0000 |
| commit | 1411f52facc2b955584f2cb453b912a903e319ed (patch) | |
| tree | cdaf6bb759ee32dfe384830b7125cd47e3e6270f /sys/ofed/include | |
| parent | 801cf532e70f6b0ebfb2d536b235f166b2e6f0a4 (diff) | |
Diffstat (limited to 'sys/ofed/include')
| -rw-r--r-- | sys/ofed/include/rdma/ib_addr.h | 12 | ||||
| -rw-r--r-- | sys/ofed/include/rdma/ib_cache.h | 4 | ||||
| -rw-r--r-- | sys/ofed/include/rdma/ib_sa.h | 4 | ||||
| -rw-r--r-- | sys/ofed/include/rdma/ib_verbs.h | 10 |
4 files changed, 15 insertions, 15 deletions
diff --git a/sys/ofed/include/rdma/ib_addr.h b/sys/ofed/include/rdma/ib_addr.h index cea39f288207..1a56970594b2 100644 --- a/sys/ofed/include/rdma/ib_addr.h +++ b/sys/ofed/include/rdma/ib_addr.h @@ -142,7 +142,7 @@ int rdma_resolve_ip_route(struct sockaddr *src_addr, void rdma_addr_cancel(struct rdma_dev_addr *addr); -int rdma_copy_addr(struct rdma_dev_addr *dev_addr, struct net_device *dev, +int rdma_copy_addr(struct rdma_dev_addr *dev_addr, struct ifnet *dev, const unsigned char *dst_dev_addr); int rdma_addr_size(struct sockaddr *addr); @@ -151,7 +151,7 @@ int rdma_addr_size_kss(struct sockaddr_storage *addr); int rdma_addr_find_l2_eth_by_grh(const union ib_gid *sgid, const union ib_gid *dgid, - u8 *smac, struct net_device *dev, + u8 *smac, struct ifnet *dev, int *hoplimit); static inline u16 ib_addr_get_pkey(struct rdma_dev_addr *dev_addr) @@ -176,7 +176,7 @@ static inline int rdma_addr_gid_offset(struct rdma_dev_addr *dev_addr) return dev_addr->dev_type == ARPHRD_INFINIBAND ? 4 : 0; } -static inline u16 rdma_vlan_dev_vlan_id(const struct net_device *dev) +static inline u16 rdma_vlan_dev_vlan_id(const struct ifnet *dev) { uint16_t tag; @@ -231,7 +231,7 @@ static inline void rdma_gid2ip(struct sockaddr *out, const union ib_gid *gid) static inline void iboe_addr_get_sgid(struct rdma_dev_addr *dev_addr, union ib_gid *gid) { - struct net_device *dev; + struct ifnet *dev; struct ifaddr *ifa; #ifdef VIMAGE @@ -300,7 +300,7 @@ static inline enum ib_mtu iboe_get_mtu(int mtu) return 0; } -static inline int iboe_get_rate(struct net_device *dev) +static inline int iboe_get_rate(struct ifnet *dev) { uint64_t baudrate = dev->if_baudrate; #ifdef if_baudrate_pf @@ -365,7 +365,7 @@ static inline u16 rdma_get_vlan_id(union ib_gid *dgid) return vid < 0x1000 ? vid : 0xffff; } -static inline struct net_device *rdma_vlan_dev_real_dev(struct net_device *dev) +static inline struct ifnet *rdma_vlan_dev_real_dev(struct ifnet *dev) { struct epoch_tracker et; diff --git a/sys/ofed/include/rdma/ib_cache.h b/sys/ofed/include/rdma/ib_cache.h index 1286010bcbbd..9a3b7b799548 100644 --- a/sys/ofed/include/rdma/ib_cache.h +++ b/sys/ofed/include/rdma/ib_cache.h @@ -76,7 +76,7 @@ int ib_get_cached_gid(struct ib_device *device, int ib_find_cached_gid(struct ib_device *device, const union ib_gid *gid, enum ib_gid_type gid_type, - struct net_device *ndev, + struct ifnet *ndev, u8 *port_num, u16 *index); @@ -99,7 +99,7 @@ int ib_find_cached_gid_by_port(struct ib_device *device, const union ib_gid *gid, enum ib_gid_type gid_type, u8 port_num, - struct net_device *ndev, + struct ifnet *ndev, u16 *index); int ib_find_gid_by_filter(struct ib_device *device, diff --git a/sys/ofed/include/rdma/ib_sa.h b/sys/ofed/include/rdma/ib_sa.h index beea96a02e1a..8a0216e50571 100644 --- a/sys/ofed/include/rdma/ib_sa.h +++ b/sys/ofed/include/rdma/ib_sa.h @@ -181,7 +181,7 @@ struct ib_sa_path_rec { enum ib_gid_type gid_type; }; -static inline struct net_device *ib_get_ndev_from_path(struct ib_sa_path_rec *rec) +static inline struct ifnet *ib_get_ndev_from_path(struct ib_sa_path_rec *rec) { #ifdef VIMAGE if (rec->net == NULL) @@ -425,7 +425,7 @@ int ib_sa_get_mcmember_rec(struct ib_device *device, u8 port_num, */ int ib_init_ah_from_mcmember(struct ib_device *device, u8 port_num, struct ib_sa_mcmember_rec *rec, - struct net_device *ndev, + struct ifnet *ndev, enum ib_gid_type gid_type, struct ib_ah_attr *ah_attr); diff --git a/sys/ofed/include/rdma/ib_verbs.h b/sys/ofed/include/rdma/ib_verbs.h index 06eb71775d5c..2450682ffa66 100644 --- a/sys/ofed/include/rdma/ib_verbs.h +++ b/sys/ofed/include/rdma/ib_verbs.h @@ -92,7 +92,7 @@ enum ib_gid_type { #define ROCE_V2_UDP_DPORT 4791 struct ib_gid_attr { enum ib_gid_type gid_type; - struct net_device *ndev; + struct ifnet *ndev; }; enum rdma_node_type { @@ -1892,7 +1892,7 @@ struct ib_device { * that this function returns NULL before the net device reaches * NETDEV_UNREGISTER_FINAL state. */ - struct net_device *(*get_netdev)(struct ib_device *device, + struct ifnet *(*get_netdev)(struct ib_device *device, u8 port_num); int (*query_gid)(struct ib_device *device, u8 port_num, int index, @@ -2139,7 +2139,7 @@ struct ib_client { * * The caller is responsible for calling dev_put on the returned * netdev. */ - struct net_device *(*get_net_dev_by_params)( + struct ifnet *(*get_net_dev_by_params)( struct ib_device *dev, u8 port, u16 pkey, @@ -2564,7 +2564,7 @@ int ib_modify_port(struct ib_device *device, struct ib_port_modify *port_modify); int ib_find_gid(struct ib_device *device, union ib_gid *gid, - enum ib_gid_type gid_type, struct net_device *ndev, + enum ib_gid_type gid_type, struct ifnet *ndev, u8 *port_num, u16 *index); int ib_find_pkey(struct ib_device *device, @@ -3341,7 +3341,7 @@ static inline int ib_check_mr_access(int flags) int ib_check_mr_status(struct ib_mr *mr, u32 check_mask, struct ib_mr_status *mr_status); -struct net_device *ib_get_net_dev_by_params(struct ib_device *dev, u8 port, +struct ifnet *ib_get_net_dev_by_params(struct ib_device *dev, u8 port, u16 pkey, const union ib_gid *gid, const struct sockaddr *addr); struct ib_wq *ib_create_wq(struct ib_pd *pd, |
