Commit 8267fc7
veth: take into account peer device for NETDEV_XDP_ACT_NDO_XMIT xdp_features flag
For veth pairs, NETDEV_XDP_ACT_NDO_XMIT is supported by the current
device if the peer one is running a XDP program or if it has GRO enabled.
Fix the xdp_features flags reporting considering peer device and not
current one for NETDEV_XDP_ACT_NDO_XMIT.
Fixes: fccca03 ("veth: take into account device reconfiguration for xdp_features flag")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://lore.kernel.org/r/4f1ca6f6f6b42ae125bfdb5c7782217c83968b2e.1681767806.git.lorenzo@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>1 parent c730fce commit 8267fc7
1 file changed
Lines changed: 11 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1262 | 1262 | | |
1263 | 1263 | | |
1264 | 1264 | | |
| 1265 | + | |
1265 | 1266 | | |
1266 | 1267 | | |
1267 | 1268 | | |
1268 | 1269 | | |
1269 | | - | |
| 1270 | + | |
1270 | 1271 | | |
1271 | 1272 | | |
1272 | 1273 | | |
| |||
1504 | 1505 | | |
1505 | 1506 | | |
1506 | 1507 | | |
| 1508 | + | |
1507 | 1509 | | |
1508 | 1510 | | |
1509 | 1511 | | |
1510 | 1512 | | |
1511 | 1513 | | |
| 1514 | + | |
1512 | 1515 | | |
1513 | 1516 | | |
1514 | 1517 | | |
1515 | 1518 | | |
1516 | 1519 | | |
1517 | | - | |
| 1520 | + | |
| 1521 | + | |
1518 | 1522 | | |
1519 | | - | |
| 1523 | + | |
| 1524 | + | |
1520 | 1525 | | |
1521 | 1526 | | |
1522 | 1527 | | |
| |||
1598 | 1603 | | |
1599 | 1604 | | |
1600 | 1605 | | |
1601 | | - | |
| 1606 | + | |
1602 | 1607 | | |
1603 | 1608 | | |
1604 | 1609 | | |
1605 | 1610 | | |
1606 | | - | |
1607 | | - | |
| 1611 | + | |
| 1612 | + | |
1608 | 1613 | | |
1609 | 1614 | | |
1610 | 1615 | | |
| |||
0 commit comments