[PATCH] net: fix sysctl_
From: Stephen Hemminger <hidden>
Date: 2005-06-02 18:19:09
Changing the sysctl net.core.dev_weight has no effect because the weight of the backlog devices is set during initialization and never changed. This patch propagates any changes to the global value affected by sysctl to the per-cpu devices. It is done every time the packet handler function is run. Signed-off-by: Stephen Hemminger <redacted> Index: skge-0.8/net/core/dev.c ===================================================================
--- skge-0.8.orig/net/core/dev.c
+++ skge-0.8/net/core/dev.c@@ -1732,6 +1732,7 @@ static int process_backlog(struct net_de struct softnet_data *queue = &__get_cpu_var(softnet_data); unsigned long start_time = jiffies; + backlog_dev->weight = weight_p; for (;;) { struct sk_buff *skb; struct net_device *dev;