aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/core/dev.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 7abf9590e3c5..8092f01713fb 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -264,7 +264,7 @@ static RAW_NOTIFIER_HEAD(netdev_chain);
264 * queue in the local softnet handler. 264 * queue in the local softnet handler.
265 */ 265 */
266 266
267DEFINE_PER_CPU(struct softnet_data, softnet_data); 267DEFINE_PER_CPU_ALIGNED(struct softnet_data, softnet_data);
268EXPORT_PER_CPU_SYMBOL(softnet_data); 268EXPORT_PER_CPU_SYMBOL(softnet_data);
269 269
270#ifdef CONFIG_LOCKDEP 270#ifdef CONFIG_LOCKDEP
@@ -3232,7 +3232,6 @@ static int process_backlog(struct napi_struct *napi, int quota)
3232{ 3232{
3233 int work = 0; 3233 int work = 0;
3234 struct softnet_data *queue = &__get_cpu_var(softnet_data); 3234 struct softnet_data *queue = &__get_cpu_var(softnet_data);
3235 unsigned long start_time = jiffies;
3236 3235
3237 napi->weight = weight_p; 3236 napi->weight = weight_p;
3238 do { 3237 do {
@@ -3252,7 +3251,7 @@ static int process_backlog(struct napi_struct *napi, int quota)
3252 local_irq_enable(); 3251 local_irq_enable();
3253 3252
3254 __netif_receive_skb(skb); 3253 __netif_receive_skb(skb);
3255 } while (++work < quota && jiffies == start_time); 3254 } while (++work < quota);
3256 3255
3257 return work; 3256 return work;
3258} 3257}