]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Add FLOWI_FLAG_KNOWN_NH
authorJulian Anastasov <ja@ssi.bg>
Mon, 8 Oct 2012 11:41:19 +0000 (11:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Oct 2012 21:42:36 +0000 (17:42 -0400)
commit397816ed5ed91c8bf7001b3d9711ce5615419d49
tree2c08aaddff418e7be5c0674aeb9e4b94ec538179
parenta0de363cb610d04db7be1fc0509e837c28433290
ipv4: Add FLOWI_FLAG_KNOWN_NH

Add flag to request that output route should be
returned with known rt_gateway, in case we want to use
it as nexthop for neighbour resolving.

The returned route can be cached as follows:

- in NH exception: because the cached routes are not shared
with other destinations
- in FIB NH: when using gateway because all destinations for
NH share same gateway

As last option, to return rt_gateway!=0 we have to
set DST_NOCACHE.

Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/flow.h
net/ipv4/route.c