Repository navigation
Commit 1f6cc51
ipv4: Add FLOWI_FLAG_KNOWN_NH
[ Upstream commit c92b965 ]
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 87a2496 commit 1f6cc51
2 files changed
Lines changed: 18 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1762 | 1762 | | |
1763 | 1763 | | |
1764 | 1764 | | |
| 1765 | + | |
1765 | 1766 | | |
1766 | 1767 | | |
1767 | 1768 | | |
| |||
1798 | 1799 | | |
1799 | 1800 | | |
1800 | 1801 | | |
| 1802 | + | |
1801 | 1803 | | |
1802 | 1804 | | |
| 1805 | + | |
1803 | 1806 | | |
1804 | | - | |
| 1807 | + | |
1805 | 1808 | | |
1806 | 1809 | | |
1807 | | - | |
1808 | | - | |
| 1810 | + | |
| 1811 | + | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
| 1815 | + | |
| 1816 | + | |
| 1817 | + | |
| 1818 | + | |
| 1819 | + | |
1809 | 1820 | | |
1810 | 1821 | | |
1811 | 1822 | | |
1812 | 1823 | | |
1813 | 1824 | | |
1814 | 1825 | | |
| 1826 | + | |
| 1827 | + | |
1815 | 1828 | | |
1816 | 1829 | | |
1817 | 1830 | | |
1818 | | - | |
| 1831 | + | |
1819 | 1832 | | |
1820 | 1833 | | |
1821 | 1834 | | |
| |||
0 commit comments