Commit 9e6c4e6
bonding: Correctly support GSO ESP offload
The referenced fix is incomplete. It correctly computes
bond_dev->gso_partial_features across slaves, but unfortunately
netdev_fix_features discards gso_partial_features from the feature set
if NETIF_F_GSO_PARTIAL isn't set in bond_dev->features.
This is visible with ethtool -k bond0 | grep esp:
tx-esp-segmentation: off [requested on]
esp-hw-offload: on
esp-tx-csum-hw-offload: on
This patch reworks the bonding GSO offload support by:
- making aggregating gso_partial_features across slaves similar to the
other feature sets (this part is a no-op).
- advertising the default partial gso features on empty bond devs, same
as with other feature sets (also a no-op).
- adding NETIF_F_GSO_PARTIAL to hw_enc_features filtered across slaves.
- adding NETIF_F_GSO_PARTIAL to features in bond_setup()
With all of these, 'ethtool -k bond0 | grep esp' now reports:
tx-esp-segmentation: on
esp-hw-offload: on
esp-tx-csum-hw-offload: on
Fixes: 4861333 ("bonding: add ESP offload features when slaves support")
Signed-off-by: Hangbin Liu <[email protected]>
Signed-off-by: Cosmin Ratiu <[email protected]>
Acked-by: Jay Vosburgh <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>1 parent 740a3e7 commit 9e6c4e6
1 file changed
+10
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1538 | 1538 | | |
1539 | 1539 | | |
1540 | 1540 | | |
1541 | | - | |
| 1541 | + | |
| 1542 | + | |
1542 | 1543 | | |
1543 | 1544 | | |
1544 | 1545 | | |
1545 | 1546 | | |
| 1547 | + | |
| 1548 | + | |
1546 | 1549 | | |
1547 | 1550 | | |
1548 | 1551 | | |
| 1552 | + | |
1549 | 1553 | | |
1550 | 1554 | | |
1551 | | - | |
1552 | 1555 | | |
1553 | 1556 | | |
1554 | 1557 | | |
| |||
1582 | 1585 | | |
1583 | 1586 | | |
1584 | 1587 | | |
1585 | | - | |
1586 | | - | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
1587 | 1591 | | |
1588 | 1592 | | |
1589 | 1593 | | |
| |||
1598 | 1602 | | |
1599 | 1603 | | |
1600 | 1604 | | |
1601 | | - | |
1602 | | - | |
1603 | | - | |
1604 | | - | |
1605 | | - | |
1606 | 1605 | | |
| 1606 | + | |
1607 | 1607 | | |
1608 | 1608 | | |
1609 | 1609 | | |
| |||
6046 | 6046 | | |
6047 | 6047 | | |
6048 | 6048 | | |
| 6049 | + | |
6049 | 6050 | | |
6050 | 6051 | | |
6051 | 6052 | | |
| |||
0 commit comments