]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net/mlx5e: Remove redundant tstamp pointer from channel structures
authorCarolina Jubran <cjubran@nvidia.com>
Thu, 30 Oct 2025 10:25:05 +0000 (12:25 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 31 Oct 2025 23:36:43 +0000 (16:36 -0700)
commit7ea4376b3972d89385599307d1ad4f20eb763a05
treec1764e259c04aa1ccddf3ce662def1481d5ca1b0
parent54133f9b4b53ffa2204eb27cfc9d50072c9a52d2
net/mlx5e: Remove redundant tstamp pointer from channel structures

Remove the tstamp pointer field from mlx5e_channel, mlx5e_ptp, and
mlx5e_trap structures, since it was only used to reference the tstamp
field in the priv structure. Instead, directly use the tstamp field
from priv when initializing RQ structures.

Also remove the unused hwtstamp_config field from mlx5_clock structure
as part of the cleanup.

Signed-off-by: Carolina Jubran <cjubran@nvidia.com>
Reviewed-by: Cosmin Ratiu <cratiu@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/1761819910-1011051-2-git-send-email-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en/ptp.c
drivers/net/ethernet/mellanox/mlx5/core/en/ptp.h
drivers/net/ethernet/mellanox/mlx5/core/en/trap.c
drivers/net/ethernet/mellanox/mlx5/core/en/trap.h
drivers/net/ethernet/mellanox/mlx5/core/en/xsk/setup.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/lib/clock.h