mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

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>
20 lines
419 B
C
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
|