diff options
author | 2021-11-29 15:15:05 +0900 | |
---|---|---|
committer | 2021-11-29 12:39:42 +0000 | |
commit | 7d4741eacdefa5f0475431645b56baf00784df1f (patch) | |
tree | a1deeff61163734f71c268789a6fbc1d7086f71c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | net: usb: lan78xx: lan78xx_phy_init(): use PHY_POLL instead of "0" if no IRQ is available (diff) | |
download | linux-dev-7d4741eacdefa5f0475431645b56baf00784df1f.tar.xz linux-dev-7d4741eacdefa5f0475431645b56baf00784df1f.zip |
net: mpls: Fix notifications when deleting a device
There are various problems related to netlink notifications for mpls route
changes in response to interfaces being deleted:
* delete interface of only nexthop
DELROUTE notification is missing RTA_OIF attribute
* delete interface of non-last nexthop
NEWROUTE notification is missing entirely
* delete interface of last nexthop
DELROUTE notification is missing nexthop
All of these problems stem from the fact that existing routes are modified
in-place before sending a notification. Restructure mpls_ifdown() to avoid
changing the route in the DELROUTE cases and to create a copy in the
NEWROUTE case.
Fixes: f8efb73c97e2 ("mpls: multipath route support")
Signed-off-by: Benjamin Poirier <bpoirier@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions