diff options
| author | Cosmin Ratiu <[email protected]> | 2025-01-27 10:41:47 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2025-01-28 12:20:48 +0000 |
| commit | 9e6c4e6b605c1fa3e24f74ee0b641e95f090188a (patch) | |
| tree | 4113de5ba3120521fd1a892dc7a4eebfda5b4678 /drivers/net/ethernet/intel/igc/igc_main.c | |
| parent | Merge branch 'limit-devicetree-parameters-to-hardware-capability' (diff) | |
| download | kernel-9e6c4e6b605c1fa3e24f74ee0b641e95f090188a.tar.gz kernel-9e6c4e6b605c1fa3e24f74ee0b641e95f090188a.zip | |
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: 4861333b4217 ("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]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_main.c')
0 files changed, 0 insertions, 0 deletions
