Move the mlx5 core device pointer first in the mlx5en priv. This help simplify
checks to recognize own network devices when using mlx5ib. This patch fixes an issues where mlx5ib fails to recognize mceX network devices for use with RoCE. MFC after: 1 week Sponsored by: Mellanox Technologies
This commit is contained in:
parent
a461a5c565
commit
1cbc85fd04
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=328591
@ -661,6 +661,8 @@ struct mlx5e_clbr_point {
|
||||
};
|
||||
|
||||
struct mlx5e_priv {
|
||||
struct mlx5_core_dev *mdev; /* must be first */
|
||||
|
||||
/* priv data path fields - start */
|
||||
int order_base_2_num_channels;
|
||||
int queue_mapping_channel_mask;
|
||||
@ -698,7 +700,6 @@ struct mlx5e_priv {
|
||||
struct work_struct set_rx_mode_work;
|
||||
MLX5_DECLARE_DOORBELL_LOCK(doorbell_lock)
|
||||
|
||||
struct mlx5_core_dev *mdev;
|
||||
struct ifnet *ifp;
|
||||
struct sysctl_ctx_list sysctl_ctx;
|
||||
struct sysctl_oid *sysctl_ifnet;
|
||||
|
Loading…
Reference in New Issue
Block a user