]> err.no Git - linux-2.6/commit
[NET]: Fix sysctl net.core.dev_weight
authorStephen Hemminger <shemminger@osdl.org>
Wed, 8 Jun 2005 21:56:01 +0000 (14:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Jun 2005 21:56:01 +0000 (14:56 -0700)
commite3876605450979fe52a1a03e7eb78a89bf59e76a
treef9231d5bda84f4450583b4fbd64456ba3caeb499
parent699a411451a32cc111410f44f172b265f6d679c8
[NET]: Fix sysctl net.core.dev_weight

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@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c