linux/drivers/net/ethernet/freescale/enetc/enetc4_debugfs.h
Wei Fang df6cb09580 net: enetc: add debugfs interface to dump MAC filter
ENETC's MAC filter consists of hash MAC filter and exact MAC filter.
Hash MAC filter is a 64-bit entry hash table consisting of two 32-bit
registers. Exact MAC filter is implemented by configuring MAC address
filter table through command BD ring. The table is stored in ENETC's
internal memory and needs to be read through command BD ring. In order
to facilitate debugging, added a debugfs interface to get the relevant
information about MAC filter.

Signed-off-by: Wei Fang <wei.fang@nxp.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://patch.msgid.link/20250506080735.3444381-6-wei.fang@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-05-08 19:43:51 -07:00

20 lines
419 B
C

/* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */
/* Copyright 2025 NXP */
#ifndef __ENETC4_DEBUGFS_H
#define __ENETC4_DEBUGFS_H
#if IS_ENABLED(CONFIG_DEBUG_FS)
void enetc_create_debugfs(struct enetc_si *si);
void enetc_remove_debugfs(struct enetc_si *si);
#else
static inline void enetc_create_debugfs(struct enetc_si *si)
{
}
static inline void enetc_remove_debugfs(struct enetc_si *si)
{
}
#endif
#endif