From b120b0d83e2145d1681f10003b13274dec6dc412 Mon Sep 17 00:00:00 2001 From: Dmitriy Eshenko Date: Tue, 24 Jan 2023 12:49:04 +0000 Subject: ipoe,vlan_mon: add support for kernels 6.1+ Co-authored-by: Martin Zaharinov --- drivers/ipoe/ipoe.c | 3 +++ drivers/vlan_mon/vlan_mon.c | 3 +++ 2 files changed, 6 insertions(+) (limited to 'drivers') diff --git a/drivers/ipoe/ipoe.c b/drivers/ipoe/ipoe.c index 5a5f68b..9597046 100644 --- a/drivers/ipoe/ipoe.c +++ b/drivers/ipoe/ipoe.c @@ -1876,6 +1876,9 @@ static struct genl_family ipoe_nl_family = { #if LINUX_VERSION_CODE >= KERNEL_VERSION(5,2,0) .policy = ipoe_nl_policy, #endif +#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,1,0) + .resv_start_op = CTRL_CMD_GETPOLICY + 1, +#endif }; static const struct net_device_ops ipoe_netdev_ops = { diff --git a/drivers/vlan_mon/vlan_mon.c b/drivers/vlan_mon/vlan_mon.c index 271f2ff..ce56dfe 100644 --- a/drivers/vlan_mon/vlan_mon.c +++ b/drivers/vlan_mon/vlan_mon.c @@ -707,6 +707,9 @@ static struct genl_family vlan_mon_nl_family = { #if LINUX_VERSION_CODE >= KERNEL_VERSION(5,2,0) .policy = vlan_mon_nl_policy, #endif +#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,1,0) + .resv_start_op = CTRL_CMD_GETPOLICY + 1, +#endif }; static struct packet_type vlan_pt __read_mostly = { -- cgit v1.2.3