@@ -280,7 +280,6 @@ struct mlx5e_cq {
280
280
struct napi_struct * napi ;
281
281
struct mlx5_core_cq mcq ;
282
282
struct mlx5e_channel * channel ;
283
- struct mlx5e_priv * priv ;
284
283
285
284
/* cqe decompression */
286
285
struct mlx5_cqe64 title ;
@@ -290,6 +289,7 @@ struct mlx5e_cq {
290
289
u16 decmprs_wqe_counter ;
291
290
292
291
/* control */
292
+ struct mlx5_core_dev * mdev ;
293
293
struct mlx5_frag_wq_ctrl wq_ctrl ;
294
294
} ____cacheline_aligned_in_smp ;
295
295
@@ -533,7 +533,7 @@ struct mlx5e_rq {
533
533
u32 mpwqe_num_strides ;
534
534
u32 rqn ;
535
535
struct mlx5e_channel * channel ;
536
- struct mlx5e_priv * priv ;
536
+ struct mlx5_core_dev * mdev ;
537
537
struct mlx5_core_mkey umr_mkey ;
538
538
} ____cacheline_aligned_in_smp ;
539
539
@@ -556,6 +556,8 @@ struct mlx5e_channel {
556
556
557
557
/* control */
558
558
struct mlx5e_priv * priv ;
559
+ struct mlx5_core_dev * mdev ;
560
+ struct mlx5e_tstamp * tstamp ;
559
561
int ix ;
560
562
int cpu ;
561
563
};
@@ -715,22 +717,6 @@ enum {
715
717
MLX5E_NIC_PRIO
716
718
};
717
719
718
- struct mlx5e_profile {
719
- void (* init )(struct mlx5_core_dev * mdev ,
720
- struct net_device * netdev ,
721
- const struct mlx5e_profile * profile , void * ppriv );
722
- void (* cleanup )(struct mlx5e_priv * priv );
723
- int (* init_rx )(struct mlx5e_priv * priv );
724
- void (* cleanup_rx )(struct mlx5e_priv * priv );
725
- int (* init_tx )(struct mlx5e_priv * priv );
726
- void (* cleanup_tx )(struct mlx5e_priv * priv );
727
- void (* enable )(struct mlx5e_priv * priv );
728
- void (* disable )(struct mlx5e_priv * priv );
729
- void (* update_stats )(struct mlx5e_priv * priv );
730
- int (* max_nch )(struct mlx5_core_dev * mdev );
731
- int max_tc ;
732
- };
733
-
734
720
struct mlx5e_priv {
735
721
/* priv data path fields - start */
736
722
struct mlx5e_txqsq * txq2sq [MLX5E_MAX_NUM_CHANNELS * MLX5E_MAX_NUM_TC ];
@@ -770,6 +756,22 @@ struct mlx5e_priv {
770
756
void * ppriv ;
771
757
};
772
758
759
+ struct mlx5e_profile {
760
+ void (* init )(struct mlx5_core_dev * mdev ,
761
+ struct net_device * netdev ,
762
+ const struct mlx5e_profile * profile , void * ppriv );
763
+ void (* cleanup )(struct mlx5e_priv * priv );
764
+ int (* init_rx )(struct mlx5e_priv * priv );
765
+ void (* cleanup_rx )(struct mlx5e_priv * priv );
766
+ int (* init_tx )(struct mlx5e_priv * priv );
767
+ void (* cleanup_tx )(struct mlx5e_priv * priv );
768
+ void (* enable )(struct mlx5e_priv * priv );
769
+ void (* disable )(struct mlx5e_priv * priv );
770
+ void (* update_stats )(struct mlx5e_priv * priv );
771
+ int (* max_nch )(struct mlx5_core_dev * mdev );
772
+ int max_tc ;
773
+ };
774
+
773
775
void mlx5e_build_ptys2ethtool_map (void );
774
776
775
777
u16 mlx5e_select_queue (struct net_device * dev , struct sk_buff * skb ,
0 commit comments