// SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved. */ #include <linux/ethtool.h> #include <net/sock.h> #include "en.h" #include "en_accel/macsec.h" static const struct counter_desc mlx5e_macsec_hw_stats_desc[] = …; #define NUM_MACSEC_HW_COUNTERS … static MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS(macsec_hw) { … } static MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS(macsec_hw) { … } static MLX5E_DECLARE_STATS_GRP_OP_FILL_STRS(macsec_hw) { … } static MLX5E_DECLARE_STATS_GRP_OP_FILL_STATS(macsec_hw) { … } MLX5E_DEFINE_STATS_GRP(…);