Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/mlx4/mlx4_en/en.h
Show First 20 Lines • Show All 648 Lines • ▼ Show 20 Lines | |||||
}; | }; | ||||
struct mlx4_mac_entry { | struct mlx4_mac_entry { | ||||
struct hlist_node hlist; | struct hlist_node hlist; | ||||
unsigned char mac[ETH_ALEN + 2]; | unsigned char mac[ETH_ALEN + 2]; | ||||
u64 reg_id; | u64 reg_id; | ||||
}; | }; | ||||
static inline void * | |||||
netdev_priv(const struct net_device *dev) | |||||
{ | |||||
return (dev->if_softc); | |||||
} | |||||
static inline struct mlx4_cqe *mlx4_en_get_cqe(u8 *buf, int idx, int cqe_sz) | static inline struct mlx4_cqe *mlx4_en_get_cqe(u8 *buf, int idx, int cqe_sz) | ||||
{ | { | ||||
return (struct mlx4_cqe *)(buf + idx * cqe_sz); | return (struct mlx4_cqe *)(buf + idx * cqe_sz); | ||||
} | } | ||||
#ifdef CONFIG_NET_RX_BUSY_POLL | #ifdef CONFIG_NET_RX_BUSY_POLL | ||||
static inline void mlx4_en_cq_init_lock(struct mlx4_en_cq *cq) | static inline void mlx4_en_cq_init_lock(struct mlx4_en_cq *cq) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 288 Lines • Show Last 20 Lines |