Skip to content

Commit 47f058c

Browse files
committed
Merge tag 'mlx5-updates-2022-07-17' of git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux
Saeed Mahameed says: ==================== mlx5-updates-2022-07-17 1) Add resiliency for lost completions for PTP TX port timestamp 2) Report Header-data split state via ethtool 3) Decouple HTB code from main regular TX code * tag 'mlx5-updates-2022-07-17' of git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux: net/mlx5: CT: Remove warning of ignore_flow_level support for non PF net/mlx5e: Add resiliency for PTP TX port timestamp net/mlx5: Expose ts_cqe_metadata_size2wqe_counter net/mlx5e: HTB, move htb functions to a new file net/mlx5e: HTB, change functions name to follow convention net/mlx5e: HTB, remove priv from htb function calls net/mlx5e: HTB, hide and dynamically allocate mlx5e_htb structure net/mlx5e: HTB, move stats and max_sqs to priv net/mlx5e: HTB, move section comment to the right place net/mlx5e: HTB, move ids to selq_params struct net/mlx5e: HTB, reduce visibility of htb functions net/mlx5e: Fix mqprio_rl handling on devlink reload net/mlx5e: Report header-data split state through ethtool ==================== Link: https://lore.kernel.org/r/20220719203529.51151-1-saeed@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2 parents 5fb859f + 22df2e9 commit 47f058c

File tree

20 files changed

+1157
-861
lines changed

20 files changed

+1157
-861
lines changed

drivers/net/ethernet/mellanox/mlx5/core/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ mlx5_core-$(CONFIG_MLX5_CORE_EN) += en/rqt.o en/tir.o en/rss.o en/rx_res.o \
2828
en_selftest.o en/port.o en/monitor_stats.o en/health.o \
2929
en/reporter_tx.o en/reporter_rx.o en/params.o en/xsk/pool.o \
3030
en/xsk/setup.o en/xsk/rx.o en/xsk/tx.o en/devlink.o en/ptp.o \
31-
en/qos.o en/trap.o en/fs_tt_redirect.o en/selq.o lib/crypto.o
31+
en/qos.o en/htb.o en/trap.o en/fs_tt_redirect.o en/selq.o \
32+
lib/crypto.o
3233

3334
#
3435
# Netdev extra

drivers/net/ethernet/mellanox/mlx5/core/en.h

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,8 @@ struct mlx5e_params {
321321
u8 num_tc;
322322
struct netdev_tc_txq tc_to_txq[TC_MAX_QUEUE];
323323
struct {
324-
struct mlx5e_mqprio_rl *rl;
324+
u64 max_rate[TC_MAX_QUEUE];
325+
u32 hw_id[TC_MAX_QUEUE];
325326
} channel;
326327
} mqprio;
327328
bool rx_cqe_compress_def;
@@ -898,16 +899,8 @@ struct mlx5e_scratchpad {
898899
cpumask_var_t cpumask;
899900
};
900901

901-
struct mlx5e_htb {
902-
DECLARE_HASHTABLE(qos_tc2node, order_base_2(MLX5E_QOS_MAX_LEAF_NODES));
903-
DECLARE_BITMAP(qos_used_qids, MLX5E_QOS_MAX_LEAF_NODES);
904-
struct mlx5e_sq_stats **qos_sq_stats;
905-
u16 max_qos_sqs;
906-
u16 maj_id;
907-
u16 defcls;
908-
};
909-
910902
struct mlx5e_trap;
903+
struct mlx5e_htb;
911904

912905
struct mlx5e_priv {
913906
/* priv data path fields - start */
@@ -945,6 +938,8 @@ struct mlx5e_priv {
945938
struct mlx5e_channel_stats **channel_stats;
946939
struct mlx5e_channel_stats trap_stats;
947940
struct mlx5e_ptp_stats ptp_stats;
941+
struct mlx5e_sq_stats **htb_qos_sq_stats;
942+
u16 htb_max_qos_sqs;
948943
u16 stats_nch;
949944
u16 max_nch;
950945
u8 max_opened_tc;
@@ -976,7 +971,7 @@ struct mlx5e_priv {
976971
struct mlx5e_hv_vhca_stats_agent stats_agent;
977972
#endif
978973
struct mlx5e_scratchpad scratchpad;
979-
struct mlx5e_htb htb;
974+
struct mlx5e_htb *htb;
980975
struct mlx5e_mqprio_rl *mqprio_rl;
981976
};
982977

@@ -1181,7 +1176,8 @@ int mlx5e_ethtool_get_sset_count(struct mlx5e_priv *priv, int sset);
11811176
void mlx5e_ethtool_get_ethtool_stats(struct mlx5e_priv *priv,
11821177
struct ethtool_stats *stats, u64 *data);
11831178
void mlx5e_ethtool_get_ringparam(struct mlx5e_priv *priv,
1184-
struct ethtool_ringparam *param);
1179+
struct ethtool_ringparam *param,
1180+
struct kernel_ethtool_ringparam *kernel_param);
11851181
int mlx5e_ethtool_set_ringparam(struct mlx5e_priv *priv,
11861182
struct ethtool_ringparam *param);
11871183
void mlx5e_ethtool_get_channels(struct mlx5e_priv *priv,

0 commit comments

Comments
 (0)