Repository navigation
Commit de68dca
inet: add a redirect generation id in inetpeer
Now inetpeer is the place where we cache redirect information for ipv4
destinations, we must be able to invalidate informations when a route is
added/removed on host.
As inetpeer is not yet namespace aware, this patch adds a shared
redirect_genid, and a per inetpeer redirect_genid. This might be changed
later if inetpeer becomes ns aware.
Cache information for one inerpeer is valid as long as its
redirect_genid has the same value than global redirect_genid.
Reported-by: Arkadiusz Miśkiewicz <a.miskiewicz@gmail.com>
Tested-by: Arkadiusz Miśkiewicz <a.miskiewicz@gmail.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 0884d7a commit de68dca
2 files changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| 134 | + | |
134 | 135 | | |
135 | 136 | | |
136 | 137 | | |
| |||
837 | 838 | | |
838 | 839 | | |
839 | 840 | | |
| 841 | + | |
840 | 842 | | |
841 | 843 | | |
842 | 844 | | |
| |||
1391 | 1393 | | |
1392 | 1394 | | |
1393 | 1395 | | |
1394 | | - | |
| 1396 | + | |
| 1397 | + | |
1395 | 1398 | | |
| 1399 | + | |
1396 | 1400 | | |
1397 | 1401 | | |
1398 | 1402 | | |
| |||
1701 | 1705 | | |
1702 | 1706 | | |
1703 | 1707 | | |
| 1708 | + | |
| 1709 | + | |
1704 | 1710 | | |
1705 | 1711 | | |
1706 | 1712 | | |
| |||
1857 | 1863 | | |
1858 | 1864 | | |
1859 | 1865 | | |
| 1866 | + | |
| 1867 | + | |
1860 | 1868 | | |
1861 | 1869 | | |
1862 | 1870 | | |
| |||
0 commit comments