summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Eshenko <dmitriy.eshenko@accel-ppp.org>2023-07-17 14:39:10 +0300
committerDmitriy Eshenko <dmitriy.eshenko@accel-ppp.org>2023-07-17 14:39:10 +0300
commit10382e2a0a7a8b9e76d9bcc2487f0bfe693547c2 (patch)
tree558e8789a4f70362c318b2887d7a9d6885fbcd93
parent7b7b6dabfd83eafc62555e0edc6147ebca270ac4 (diff)
downloadaccel-ppp-10382e2a0a7a8b9e76d9bcc2487f0bfe693547c2.tar.gz
accel-ppp-10382e2a0a7a8b9e76d9bcc2487f0bfe693547c2.zip
ipoe: Add kernel 6.3 compatibility
-rw-r--r--drivers/ipoe/ipoe.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/ipoe/ipoe.c b/drivers/ipoe/ipoe.c
index 9597046..0b8e2cb 100644
--- a/drivers/ipoe/ipoe.c
+++ b/drivers/ipoe/ipoe.c
@@ -166,9 +166,14 @@ static struct genl_multicast_group ipoe_nl_mcg;
#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,16,0) || RHEL_MAJOR == 7
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,3,0)
+#define u64_stats_fetch_begin_bh u64_stats_fetch_begin
+#define u64_stats_fetch_retry_bh u64_stats_fetch_retry
+#else
#define u64_stats_fetch_begin_bh u64_stats_fetch_begin_irq
#define u64_stats_fetch_retry_bh u64_stats_fetch_retry_irq
#endif
+#endif
#ifndef NETIF_F_HW_VLAN_FILTER
#define NETIF_F_HW_VLAN_FILTER NETIF_F_HW_VLAN_CTAG_FILTER