Commit 8e92ab3
net: dsa: simplify netdevice events handling
Simplify the code handling the slave netdevice notifier call by
providing a dsa_slave_changeupper helper for NETDEV_CHANGEUPPER, and so
on (only this event is supported at the moment.)
Return NOTIFY_DONE when we did not care about an event, and NOTIFY_OK
when we were concerned but no error occurred, as the API suggests.
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 88e4f0c commit 8e92ab3
1 file changed
+16
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1491 | 1491 | | |
1492 | 1492 | | |
1493 | 1493 | | |
1494 | | - | |
1495 | | - | |
| 1494 | + | |
| 1495 | + | |
1496 | 1496 | | |
1497 | | - | |
1498 | | - | |
1499 | | - | |
| 1497 | + | |
1500 | 1498 | | |
1501 | | - | |
1502 | | - | |
1503 | | - | |
1504 | | - | |
1505 | | - | |
1506 | | - | |
1507 | | - | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
1508 | 1506 | | |
1509 | | - | |
1510 | | - | |
1511 | | - | |
1512 | | - | |
1513 | | - | |
1514 | | - | |
1515 | | - | |
1516 | | - | |
1517 | | - | |
1518 | | - | |
1519 | | - | |
1520 | | - | |
1521 | | - | |
1522 | 1507 | | |
1523 | 1508 | | |
1524 | | - | |
| 1509 | + | |
1525 | 1510 | | |
1526 | 1511 | | |
1527 | 1512 | | |
1528 | 1513 | | |
1529 | 1514 | | |
1530 | 1515 | | |
1531 | 1516 | | |
1532 | | - | |
1533 | | - | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
1534 | 1522 | | |
1535 | 1523 | | |
1536 | 1524 | | |
| |||
0 commit comments