From 10382e2a0a7a8b9e76d9bcc2487f0bfe693547c2 Mon Sep 17 00:00:00 2001
From: Dmitriy Eshenko <dmitriy.eshenko@accel-ppp.org>
Date: Mon, 17 Jul 2023 14:39:10 +0300
Subject: ipoe: Add kernel 6.3 compatibility

---
 drivers/ipoe/ipoe.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/ipoe/ipoe.c b/drivers/ipoe/ipoe.c
index 95970466..0b8e2cbf 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
-- 
cgit v1.2.3