diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-08 04:21:41 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-08 04:21:41 +0000 |
commit | b488a8b2c3eaf68ad4778dbdc99bdda0b0d1ce6d (patch) | |
tree | 9f60f0d41af253fa943e7811f231d36852f10f1e /debian/patches-rt/0197-net-Use-skbufhead-with-raw-lock.patch | |
parent | Merging upstream version 4.19.304. (diff) | |
download | linux-b488a8b2c3eaf68ad4778dbdc99bdda0b0d1ce6d.tar.xz linux-b488a8b2c3eaf68ad4778dbdc99bdda0b0d1ce6d.zip |
Adding debian version 4.19.304-1.debian/4.19.304-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches-rt/0197-net-Use-skbufhead-with-raw-lock.patch')
-rw-r--r-- | debian/patches-rt/0197-net-Use-skbufhead-with-raw-lock.patch | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/debian/patches-rt/0197-net-Use-skbufhead-with-raw-lock.patch b/debian/patches-rt/0197-net-Use-skbufhead-with-raw-lock.patch index 9ea8b1ddc..0a66ef1ac 100644 --- a/debian/patches-rt/0197-net-Use-skbufhead-with-raw-lock.patch +++ b/debian/patches-rt/0197-net-Use-skbufhead-with-raw-lock.patch @@ -1,7 +1,7 @@ From: Thomas Gleixner <tglx@linutronix.de> Date: Tue, 12 Jul 2011 15:38:34 +0200 -Subject: [PATCH 197/353] net: Use skbufhead with raw lock -Origin: https://git.kernel.org/cgit/linux/kernel/git/rt/linux-stable-rt.git/commit?id=128030e2370b7b2d2b5607a2e95202392ae79eaa +Subject: [PATCH 197/354] net: Use skbufhead with raw lock +Origin: https://git.kernel.org/cgit/linux/kernel/git/rt/linux-stable-rt.git/commit?id=ac48ebc6bbcdf2e311ceec73d31c14d14b172601 Use the rps lock as rawlock so we can keep irq-off regions. It looks low latency. However we can't kfree() from this context therefore we defer this @@ -15,10 +15,10 @@ Signed-off-by: Thomas Gleixner <tglx@linutronix.de> 3 files changed, 28 insertions(+), 6 deletions(-) diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h -index 4d0f48e74755..d3e4b3f195ff 100644 +index ac87fcc4d44b..77209c1c2e7e 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h -@@ -2992,6 +2992,7 @@ struct softnet_data { +@@ -2998,6 +2998,7 @@ struct softnet_data { unsigned int dropped; struct sk_buff_head input_pkt_queue; struct napi_struct backlog; @@ -52,7 +52,7 @@ index f97734f34746..3ede4f0eac10 100644 struct lock_class_key *class) { diff --git a/net/core/dev.c b/net/core/dev.c -index 70a3cebdac89..7bce4581d6f0 100644 +index c6c45f663539..97c74c2e500e 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -219,14 +219,14 @@ static inline struct hlist_head *dev_index_hash(struct net *net, int ifindex) @@ -72,7 +72,7 @@ index 70a3cebdac89..7bce4581d6f0 100644 #endif } -@@ -5862,7 +5862,9 @@ static int process_backlog(struct napi_struct *napi, int quota) +@@ -5864,7 +5864,9 @@ static int process_backlog(struct napi_struct *napi, int quota) while (again) { struct sk_buff *skb; @@ -82,7 +82,7 @@ index 70a3cebdac89..7bce4581d6f0 100644 rcu_read_lock(); __netif_receive_skb(skb); rcu_read_unlock(); -@@ -5870,9 +5872,9 @@ static int process_backlog(struct napi_struct *napi, int quota) +@@ -5872,9 +5874,9 @@ static int process_backlog(struct napi_struct *napi, int quota) if (++work >= quota) return work; @@ -93,7 +93,7 @@ index 70a3cebdac89..7bce4581d6f0 100644 rps_lock(sd); if (skb_queue_empty(&sd->input_pkt_queue)) { /* -@@ -6345,13 +6347,21 @@ static __latent_entropy void net_rx_action(struct softirq_action *h) +@@ -6347,13 +6349,21 @@ static __latent_entropy void net_rx_action(struct softirq_action *h) unsigned long time_limit = jiffies + usecs_to_jiffies(READ_ONCE(netdev_budget_usecs)); int budget = READ_ONCE(netdev_budget); @@ -115,7 +115,7 @@ index 70a3cebdac89..7bce4581d6f0 100644 for (;;) { struct napi_struct *n; -@@ -9549,10 +9559,13 @@ static int dev_cpu_dead(unsigned int oldcpu) +@@ -9541,10 +9551,13 @@ static int dev_cpu_dead(unsigned int oldcpu) netif_rx_ni(skb); input_queue_head_incr(oldsd); } @@ -130,7 +130,7 @@ index 70a3cebdac89..7bce4581d6f0 100644 return 0; } -@@ -9863,8 +9876,9 @@ static int __init net_dev_init(void) +@@ -9855,8 +9868,9 @@ static int __init net_dev_init(void) INIT_WORK(flush, flush_backlog); |