]> git.baikalelectronics.ru Git - kernel.git/commit
[NET]: Rethink mark field in struct flowi
authorThomas Graf <tgraf@suug.ch>
Thu, 9 Nov 2006 23:20:38 +0000 (15:20 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 3 Dec 2006 05:21:39 +0000 (21:21 -0800)
commite613acd6a6b0b54c36a4732995be45cfef0bcf63
tree1a56767a77e219fab54ab1daf34342745f6d62a8
parent8e757ed1d850b541435850e88cb894d7cc40ae6c
[NET]: Rethink mark field in struct flowi

Now that all protocols have been made aware of the mark
field it can be moved out of the union thus simplyfing
its usage.

The config options in the IPv4/IPv6/DECnet subsystems
to enable respectively disable mark based routing only
obfuscate the code with ifdefs, the cost for the
additional comparison in the flow key is insignificant,
and most distributions have all these options enabled
by default anyway. Therefore it makes sense to remove
the config options and enable mark based routing by
default.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
14 files changed:
include/net/flow.h
include/net/ip_mp_alg.h
net/decnet/Kconfig
net/decnet/dn_route.c
net/decnet/dn_rules.c
net/ipv4/Kconfig
net/ipv4/fib_frontend.c
net/ipv4/fib_rules.c
net/ipv4/netfilter.c
net/ipv4/netfilter/iptable_mangle.c
net/ipv4/route.c
net/ipv6/Kconfig
net/ipv6/fib6_rules.c
net/ipv6/route.c