[PATCH 1/1] UBUNTU: SAUCE: fan: expose IFLA_VXLAN_FAN_MAP version via sysctl/proc
Paolo Pisati
paolo.pisati at canonical.com
Thu Apr 3 08:46:38 UTC 2025
BugLink: https://bugs.launchpad.net/bugs/2106115
Signed-off-by: Paolo Pisati <paolo.pisati at canonical.com>
---
drivers/net/vxlan/vxlan_core.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/net/vxlan/vxlan_core.c b/drivers/net/vxlan/vxlan_core.c
index 9f975989beea..0a7ad50bd003 100644
--- a/drivers/net/vxlan/vxlan_core.c
+++ b/drivers/net/vxlan/vxlan_core.c
@@ -5170,6 +5170,7 @@ static __net_init int vxlan_init_net(struct net *net)
#ifdef CONFIG_SYSCTL
static struct ctl_table_header *vxlan_fan_header;
static unsigned int vxlan_fan_version = 4;
+static unsigned int ifla_vxlan_fan_map = IFLA_VXLAN_FAN_MAP;
static struct ctl_table vxlan_fan_sysctls[] = {
{
@@ -5179,6 +5180,13 @@ static struct ctl_table vxlan_fan_sysctls[] = {
.mode = 0444,
.proc_handler = proc_dointvec,
},
+ {
+ .procname = "IFLA_VXLAN_FAN_MAP",
+ .data = &ifla_vxlan_fan_map,
+ .maxlen = sizeof(ifla_vxlan_fan_map),
+ .mode = 0444,
+ .proc_handler = proc_dointvec,
+ },
};
#endif /* CONFIG_SYSCTL */
--
2.34.1
More information about the kernel-team
mailing list