diff options
author | Dmitriy Eshenko <dmitriy.eshenko@accel-ppp.org> | 2023-01-24 12:49:04 +0000 |
---|---|---|
committer | Dmitriy Eshenko <dmitriy.eshenko@accel-ppp.org> | 2023-01-24 12:49:04 +0000 |
commit | b120b0d83e2145d1681f10003b13274dec6dc412 (patch) | |
tree | 531a352eaf93dbdb10aaadc22fc45d2a5378cd0d /drivers | |
parent | 697649b8c265fc05c8bab20a612816e3951d2c68 (diff) | |
download | accel-ppp-b120b0d83e2145d1681f10003b13274dec6dc412.tar.gz accel-ppp-b120b0d83e2145d1681f10003b13274dec6dc412.zip |
ipoe,vlan_mon: add support for kernels 6.1+
Co-authored-by: Martin Zaharinov <micron@bngsoft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ipoe/ipoe.c | 3 | ||||
-rw-r--r-- | drivers/vlan_mon/vlan_mon.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/drivers/ipoe/ipoe.c b/drivers/ipoe/ipoe.c index 5a5f68b8..95970466 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 271f2ff1..ce56dfe1 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 = { |