| To: | "David S. Miller" <davem@xxxxxxxxxxxxx> |
|---|---|
| Subject: | [PATCH] net: fix sysctl_ |
| From: | Stephen Hemminger <shemminger@xxxxxxxx> |
| Date: | Thu, 2 Jun 2005 11:19:09 -0700 |
| Cc: | Mitch Williams <mitch.a.williams@xxxxxxxxx>, netdev@xxxxxxxxxxx |
| In-reply-to: | <Pine.CYG.4.58.0505261406210.2364@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> |
| Organization: | Open Source Development Lab |
| References: | <Pine.CYG.4.58.0505261406210.2364@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
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 <shemminger@xxxxxxxx>
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;
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH] net: allow controlling NAPI weight with sysfs, Stephen Hemminger |
|---|---|
| Next by Date: | Re: R8169 from U.S.Robotics not found by driver, Francois Romieu |
| Previous by Thread: | [PATCH] net: allow controlling NAPI weight with sysfs, Stephen Hemminger |
| Next by Thread: | Antw: Re: [PATCH] ieee80211: Update generic definitions to latest specs., gwingerde |
| Indexes: | [Date] [Thread] [Top] [All Lists] |