diff -pruN 2.6-2/debian/changelog 2.6-2ubuntu1/debian/changelog
--- 2.6-2/debian/changelog	2021-09-22 22:45:21.000000000 +0000
+++ 2.6-2ubuntu1/debian/changelog	2021-11-19 16:11:54.000000000 +0000
@@ -1,3 +1,10 @@
+iptables-netflow (2.6-2ubuntu1) jammy; urgency=medium
+
+  * Support linux 5.15 (LP: #1951611)
+    - debian/patches/0010-support-kernel-5.15.patch 
+
+ -- Andrea Righi <andrea.righi@canonical.com>  Fri, 19 Nov 2021 16:11:54 +0000
+
 iptables-netflow (2.6-2) unstable; urgency=high
 
   * Cherry-pick 66e43041 ("Namespace sk_error_report") from upstream to
diff -pruN 2.6-2/debian/control 2.6-2ubuntu1/debian/control
--- 2.6-2/debian/control	2021-09-22 19:05:06.000000000 +0000
+++ 2.6-2ubuntu1/debian/control	2021-11-19 16:11:54.000000000 +0000
@@ -1,7 +1,8 @@
 Source: iptables-netflow
 Section: kernel
 Priority: optional
-Maintainer: Axel Beckert <abe@debian.org>
+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
+XSBC-Original-Maintainer: Axel Beckert <abe@debian.org>
 Build-Depends: debhelper-compat (= 13),
                dh-exec,
                dkms,
diff -pruN 2.6-2/debian/patches/0010-support-kernel-5.15.patch 2.6-2ubuntu1/debian/patches/0010-support-kernel-5.15.patch
--- 2.6-2/debian/patches/0010-support-kernel-5.15.patch	1970-01-01 00:00:00.000000000 +0000
+++ 2.6-2ubuntu1/debian/patches/0010-support-kernel-5.15.patch	2021-11-19 16:11:54.000000000 +0000
@@ -0,0 +1,55 @@
+Subject: support kernel 5.15
+Author: Andrea Righi <andrea.righi@canonical.com>
+
+diff -urpN iptables-netflow-2.5.1.orig/ipt_NETFLOW.c iptables-netflow-2.5.1/ipt_NETFLOW.c
+--- iptables-netflow-2.5.1.orig/ipt_NETFLOW.c	2021-11-19 15:54:17.000000000 +0000
++++ iptables-netflow-2.5.1/ipt_NETFLOW.c	2021-11-19 16:10:16.025854393 +0000
+@@ -4579,7 +4579,11 @@ static void rate_timer_calc(
+ #ifdef CONFIG_NF_NAT_NEEDED
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,31)
+ static struct nf_ct_event_notifier *saved_event_cb __read_mostly = NULL;
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,15,0)
++static int netflow_conntrack_event(unsigned int events, const struct nf_ct_event *item)
++#else
+ static int netflow_conntrack_event(const unsigned int events, struct nf_ct_event *item)
++#endif
+ #else
+ static int netflow_conntrack_event(struct notifier_block *this, unsigned long events, void *ptr)
+ #endif
+@@ -4601,8 +4605,12 @@ static int netflow_conntrack_event(struc
+ 	/* Call netlink first. */
+ 	notifier = rcu_dereference(saved_event_cb);
+ 	if (likely(notifier))
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,15,0)
++		ret = notifier->ct_event(events, item);
++#else
+ 		ret = notifier->fcn(events, item);
+ #endif
++#endif
+ 	if (unlikely(!natevents))
+ 		return ret;
+ 
+@@ -4666,7 +4674,11 @@ static struct notifier_block ctnl_notifi
+ };
+ #else
+ static struct nf_ct_event_notifier ctnl_notifier = {
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,15,0)
++	.ct_event = netflow_conntrack_event
++#else
+ 	.fcn = netflow_conntrack_event
++#endif
+ };
+ #endif /* since 2.6.31 */
+ #endif /* CONFIG_NF_NAT_NEEDED */
+@@ -5434,7 +5446,11 @@ static void unset_notifier_cb(NET_STRUCT
+ 	notifier = rcu_dereference(nf_conntrack_event_cb);
+ 	if (notifier == &ctnl_notifier) {
+ 		if (saved_event_cb == NULL)
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,15,0)
++			nf_conntrack_unregister_notifier(net);
++#else
+ 			nf_conntrack_unregister_notifier(NET_ARG &ctnl_notifier);
++#endif
+ 		else
+ 			rcu_assign_pointer(nf_conntrack_event_cb, saved_event_cb);
+ 	} else
diff -pruN 2.6-2/debian/patches/series 2.6-2ubuntu1/debian/patches/series
--- 2.6-2/debian/patches/series	2021-09-22 22:23:38.000000000 +0000
+++ 2.6-2ubuntu1/debian/patches/series	2021-11-19 16:11:54.000000000 +0000
@@ -3,3 +3,4 @@ properly-pass-CPPFLAGS-and-LDFLAGS.patch
 disable-kernel-check.patch
 dont-hardcode-current-gcc.patch
 cherry-pick_66e43041_namespace_sk_error_report.patch
+0010-support-kernel-5.15.patch
