]> git.baikalelectronics.ru Git - kernel.git/commit
[NET] fib_rules: Mark rules detached from the device
authorThomas Graf <tgraf@suug.ch>
Tue, 27 Mar 2007 00:37:59 +0000 (17:37 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 26 Apr 2007 05:28:13 +0000 (22:28 -0700)
commit7154b9f36997aa4664f832c5da717a088c30b456
treea766c892dd0fc5a0266c25102eda1106b79fd14c
parente509938f92642752ed09151a0ad310363d165f55
[NET] fib_rules: Mark rules detached from the device

Rules which match against device names in their selector can
remain while the device itself disappears, in fact the device
doesn't have to present when the rule is added in the first
place. The device name is resolved by trying when the rule is
added and later by listening to NETDEV_REGISTER/UNREGISTER
notifications.

This patch adds the flag FIB_RULE_DEV_DETACHED which is set
towards userspace when a rule contains a device match which
is unresolved at the moment. This eases spotting the reason
why certain rules seem not to function properly.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/fib_rules.h
net/core/fib_rules.c