|
60 | 60 | #include "lib/clock.h" |
61 | 61 | #include "en/rx_res.h" |
62 | 62 | #include "en/selq.h" |
63 | | -#include "lib/sd.h" |
64 | 63 |
|
65 | 64 | extern const struct net_device_ops mlx5e_netdev_ops; |
66 | | -extern const struct net_device_ops mlx5e_mgmt_netdev_ops; |
67 | 65 | struct page_pool; |
68 | 66 |
|
69 | 67 | #define MLX5E_METADATA_ETHER_TYPE (0x8CE4) |
@@ -793,8 +791,6 @@ struct mlx5e_channel { |
793 | 791 | struct hwtstamp_config *tstamp; |
794 | 792 | DECLARE_BITMAP(state, MLX5E_CHANNEL_NUM_STATES); |
795 | 793 | int ix; |
796 | | - int vec_ix; |
797 | | - int sd_ix; |
798 | 794 | int cpu; |
799 | 795 | /* Sync between icosq recovery and XSK enable/disable. */ |
800 | 796 | struct mutex icosq_recovery_lock; |
@@ -918,7 +914,7 @@ struct mlx5e_priv { |
918 | 914 | bool tx_ptp_opened; |
919 | 915 | bool rx_ptp_opened; |
920 | 916 | struct hwtstamp_config tstamp; |
921 | | - u16 q_counter[MLX5_SD_MAX_GROUP_SZ]; |
| 917 | + u16 q_counter; |
922 | 918 | u16 drop_rq_q_counter; |
923 | 919 | struct notifier_block events_nb; |
924 | 920 | struct notifier_block blocking_events_nb; |
@@ -1033,12 +1029,12 @@ struct mlx5e_xsk_param; |
1033 | 1029 |
|
1034 | 1030 | struct mlx5e_rq_param; |
1035 | 1031 | int mlx5e_open_rq(struct mlx5e_params *params, struct mlx5e_rq_param *param, |
1036 | | - struct mlx5e_xsk_param *xsk, int node, u16 q_counter, |
| 1032 | + struct mlx5e_xsk_param *xsk, int node, |
1037 | 1033 | struct mlx5e_rq *rq); |
1038 | 1034 | #define MLX5E_RQ_WQES_TIMEOUT 20000 /* msecs */ |
1039 | 1035 | int mlx5e_wait_for_min_rx_wqes(struct mlx5e_rq *rq, int wait_time); |
1040 | 1036 | void mlx5e_close_rq(struct mlx5e_rq *rq); |
1041 | | -int mlx5e_create_rq(struct mlx5e_rq *rq, struct mlx5e_rq_param *param, u16 q_counter); |
| 1037 | +int mlx5e_create_rq(struct mlx5e_rq *rq, struct mlx5e_rq_param *param); |
1042 | 1038 | void mlx5e_destroy_rq(struct mlx5e_rq *rq); |
1043 | 1039 |
|
1044 | 1040 | struct mlx5e_sq_param; |
@@ -1126,10 +1122,9 @@ static inline bool mlx5_tx_swp_supported(struct mlx5_core_dev *mdev) |
1126 | 1122 | } |
1127 | 1123 |
|
1128 | 1124 | extern const struct ethtool_ops mlx5e_ethtool_ops; |
1129 | | -extern const struct mlx5e_profile mlx5e_mgmt_pf_nic_profile; |
1130 | 1125 |
|
1131 | 1126 | int mlx5e_create_mkey(struct mlx5_core_dev *mdev, u32 pdn, u32 *mkey); |
1132 | | -int mlx5e_create_mdev_resources(struct mlx5_core_dev *mdev, bool create_tises); |
| 1127 | +int mlx5e_create_mdev_resources(struct mlx5_core_dev *mdev); |
1133 | 1128 | void mlx5e_destroy_mdev_resources(struct mlx5_core_dev *mdev); |
1134 | 1129 | int mlx5e_refresh_tirs(struct mlx5e_priv *priv, bool enable_uc_lb, |
1135 | 1130 | bool enable_mc_lb); |
@@ -1232,8 +1227,6 @@ netdev_features_t mlx5e_features_check(struct sk_buff *skb, |
1232 | 1227 | struct net_device *netdev, |
1233 | 1228 | netdev_features_t features); |
1234 | 1229 | int mlx5e_set_features(struct net_device *netdev, netdev_features_t features); |
1235 | | -void mlx5e_nic_set_rx_mode(struct mlx5e_priv *priv); |
1236 | | - |
1237 | 1230 | #ifdef CONFIG_MLX5_ESWITCH |
1238 | 1231 | int mlx5e_set_vf_mac(struct net_device *dev, int vf, u8 *mac); |
1239 | 1232 | int mlx5e_set_vf_rate(struct net_device *dev, int vf, int min_tx_rate, int max_tx_rate); |
|
0 commit comments