Repository navigation
Commit fd52e1f
net: mpls: Fix notifications when deleting a device
commit 7d4741e upstream.
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: f8efb73 ("mpls: multipath route support")
Signed-off-by: Benjamin Poirier <bpoirier@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 15fa12c commit fd52e1f
1 file changed
Lines changed: 52 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1490 | 1490 | | |
1491 | 1491 | | |
1492 | 1492 | | |
1493 | | - | |
| 1493 | + | |
1494 | 1494 | | |
1495 | 1495 | | |
1496 | 1496 | | |
1497 | | - | |
1498 | 1497 | | |
1499 | 1498 | | |
1500 | 1499 | | |
1501 | 1500 | | |
1502 | 1501 | | |
| 1502 | + | |
| 1503 | + | |
1503 | 1504 | | |
1504 | 1505 | | |
1505 | 1506 | | |
1506 | 1507 | | |
1507 | | - | |
1508 | | - | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
1509 | 1539 | | |
1510 | 1540 | | |
1511 | 1541 | | |
| |||
1529 | 1559 | | |
1530 | 1560 | | |
1531 | 1561 | | |
1532 | | - | |
1533 | | - | |
1534 | 1562 | | |
1535 | 1563 | | |
1536 | 1564 | | |
1537 | 1565 | | |
1538 | | - | |
1539 | | - | |
1540 | | - | |
| 1566 | + | |
| 1567 | + | |
1541 | 1568 | | |
| 1569 | + | |
| 1570 | + | |
1542 | 1571 | | |
1543 | 1572 | | |
1544 | 1573 | | |
| |||
1596 | 1625 | | |
1597 | 1626 | | |
1598 | 1627 | | |
| 1628 | + | |
| 1629 | + | |
1599 | 1630 | | |
1600 | | - | |
| 1631 | + | |
| 1632 | + | |
| 1633 | + | |
1601 | 1634 | | |
1602 | 1635 | | |
1603 | 1636 | | |
| |||
1608 | 1641 | | |
1609 | 1642 | | |
1610 | 1643 | | |
1611 | | - | |
| 1644 | + | |
1612 | 1645 | | |
1613 | | - | |
1614 | | - | |
| 1646 | + | |
| 1647 | + | |
| 1648 | + | |
| 1649 | + | |
| 1650 | + | |
1615 | 1651 | | |
1616 | 1652 | | |
1617 | | - | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
1618 | 1656 | | |
1619 | 1657 | | |
1620 | 1658 | | |
| |||
1625 | 1663 | | |
1626 | 1664 | | |
1627 | 1665 | | |
1628 | | - | |
1629 | | - | |
1630 | 1666 | | |
1631 | 1667 | | |
1632 | 1668 | | |
| |||
0 commit comments