diff options
author | David S. Miller <davem@davemloft.net> | 2022-04-01 14:09:17 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-04-01 14:09:17 +0300 |
commit | 37391cc843eb7a302eed289b3ad745863d2af470 (patch) | |
tree | 837722a430699bb426e0ddce2ae8db7fcbac03e1 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | c3efcedd272aa6dd5929e20cf902a52ddaa1197a (diff) | |
parent | 392baa339c6a42a2cb088e5e5df2b59b8f89be24 (diff) | |
download | linux-37391cc843eb7a302eed289b3ad745863d2af470.tar.xz |
Merge branch 'nexthop-route-deletye-warning'
Nikolay Aleksandrov says:
====================
net: ipv4: fix nexthop route delete warning
The first patch fixes a warning that can be triggered by deleting a
nexthop route and specifying a device (more info in its commit msg).
And the second patch adds a selftest for that case.
Chose this way to fix it because we should match when deleting without
nh spec and should fail when deleting a nexthop route with old-style nh
spec because nexthop objects are managed separately, e.g.:
$ ip r show 1.2.3.4/32
1.2.3.4 nhid 12 via 192.168.11.2 dev dummy0
$ ip r del 1.2.3.4/32
$ ip r del 1.2.3.4/32 nhid 12
<both should work>
$ ip r del 1.2.3.4/32 dev dummy0
<should fail with ESRCH>
v2: addded more to patch 01's commit message
adjusted the test comment in patch 02
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions