summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/build-and-run.yml5
-rw-r--r--.github/workflows/run-tests.yml9
-rw-r--r--drivers/ipoe/ipoe.c13
3 files changed, 13 insertions, 14 deletions
diff --git a/.github/workflows/build-and-run.yml b/.github/workflows/build-and-run.yml
index 67d01b9c..3dfebd86 100644
--- a/.github/workflows/build-and-run.yml
+++ b/.github/workflows/build-and-run.yml
@@ -14,9 +14,6 @@ jobs:
fail-fast: false
matrix:
include:
- - distro: ubuntu-20.04
- pkg-distro: ubuntu20.04
- cpack-type: Ubuntu20
- distro: ubuntu-22.04
pkg-distro: ubuntu22.04
cpack-type: Ubuntu22
@@ -88,7 +85,6 @@ jobs:
"debian:11",
"debian:12",
"debian:trixie",
- "ubuntu:20.04",
"ubuntu:22.04",
"ubuntu:24.04",
"ubuntu:devel"
@@ -108,7 +104,6 @@ jobs:
ubuntu:devel) CPACK_TYPE=Ubuntu24 ; HEADERS_SUFFIX=generic ;;
ubuntu:24.04) CPACK_TYPE=Ubuntu24 ; HEADERS_SUFFIX=generic ;;
ubuntu:22.04) CPACK_TYPE=Ubuntu22 ; HEADERS_SUFFIX=generic ;;
- ubuntu:20.04) CPACK_TYPE=Ubuntu20 ; HEADERS_SUFFIX=generic ;;
esac;
echo HEADERS_SUFFIX=$HEADERS_SUFFIX >> $GITHUB_ENV;
echo DISTRO=$DISTRO >> $GITHUB_ENV;
diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml
index 6fdd5bda..af7b5727 100644
--- a/.github/workflows/run-tests.yml
+++ b/.github/workflows/run-tests.yml
@@ -26,11 +26,6 @@ jobs:
untar: false
format: qcow2
- - distro: Ubuntu-20.04
- image: https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img
- untar: false
- format: qcow2
-
- distro: Debian13
image: https://cloud.debian.org/images/cloud/trixie/daily/latest/debian-13-generic-amd64-daily.tar.xz
untar: true
@@ -318,7 +313,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- distro: ["ubuntu-24.04", "ubuntu-22.04", "ubuntu-20.04"]
+ distro: ["ubuntu-24.04", "ubuntu-22.04"]
runs-on: ${{ matrix.distro }}
steps:
@@ -373,7 +368,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- distro: ["ubuntu-24.04", "ubuntu-22.04", "ubuntu-20.04"]
+ distro: ["ubuntu-24.04", "ubuntu-22.04"]
runs-on: ${{ matrix.distro }}
steps:
diff --git a/drivers/ipoe/ipoe.c b/drivers/ipoe/ipoe.c
index c6b88620..14b6416a 100644
--- a/drivers/ipoe/ipoe.c
+++ b/drivers/ipoe/ipoe.c
@@ -702,7 +702,11 @@ nl_err:
if (!list_empty(&ipoe_list2_u))
mod_timer(&ipoe_timer_u, jiffies + IPOE_TIMEOUT_U * HZ);
else
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6,2,0)
del_timer(&ipoe_timer_u);
+#else
+ timer_delete(&ipoe_timer_u);
+#endif
}
static struct ipoe_session *ipoe_lookup(__be32 addr)
@@ -1105,7 +1109,9 @@ static void ipoe_netdev_setup(struct net_device *dev)
dev->iflink = 0;
#endif
dev->addr_len = ETH_ALEN;
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,12,0)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,15,0)
+ dev->netns_immutable = true;
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(6,12,0)
dev->netns_local = true;
#else
dev->features |= NETIF_F_NETNS_LOCAL;
@@ -1988,8 +1994,11 @@ static void __exit ipoe_fini(void)
flush_work(&ipoe_queue_work);
skb_queue_purge(&ipoe_queue);
-
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6,2,0)
del_timer(&ipoe_timer_u);
+#else
+ timer_delete(&ipoe_timer_u);
+#endif
for (i = 0; i <= IPOE_HASH_BITS; i++)
rcu_assign_pointer(ipoe_list[i].next, &ipoe_list[i]);