Skip to content

macsec: inherit lower device's features and TSO limits when offloading

Sabrina Dubroca linux-kselftest netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 8 repliesApplied 8/8

Patches in v1 All 8 applied

#Subject and filesSizeRepliesApplied
1/8netdevsim: add more hw_featuresdrivers/net/netdevsim/netdev.c+5 -11 replyApplied
2/8selftests: netdevsim: add a test checking ethtool featurestools/testing/selftests/drivers/net/netdevsim/Makefile tools/testing/selftests/drivers/net/netdevsim/ethtool-features.sh+32 -01 replyApplied
3/8macsec: add some of the lower device's features when offloadingdrivers/net/macsec.c+15 -21 replyApplied
4/8macsec: clean up local variables in macsec_notifydrivers/net/macsec.c+7 -181 replyApplied
5/8macsec: inherit lower device's TSO limits when offloadingdrivers/net/macsec.c+22 -01 replyApplied
6/8selftests: move macsec offload tests from net/rtnetlink to drivers/net/netdvesimtools/testing/selftests/drivers/net/netdevsim/Makefile tools/testing/selftests/drivers/net/netdevsim/config tools/testing/selftests/drivers/net/netdevsim/macsec-offload.sh +1 more+65 -681 replyApplied
7/8selftests: netdevsim: add test toggling macsec offloadtools/testing/selftests/drivers/net/netdevsim/macsec-offload.sh+21 -01 replyApplied
8/8selftests: netdevsim: add ethtool features to macsec offload teststools/testing/selftests/drivers/net/netdevsim/macsec-offload.sh+33 -01 replyApplied

Reviews trailers per patch

All 8 patches have a Reviewed-by or Acked-by.

PatchSimon Horman
1/8R-b
2/8R-b
3/8R-b
4/8R-b
5/8R-b
6/8R-b
7/8R-b
8/8R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next 0/8] macsec: inherit lower device's features and TSO limits when offloading

When macsec is offloaded to a NIC, we can take advantage of some of its features, mainly TSO and checksumming. This increases performance significantly. Some features cannot be inherited, because they require additional ops that aren't provided by the macsec netdevice.

We also need to inherit TSO limits from the lower device, like VLAN/macvlan devices do.

This series also moves the existing macsec offload selftest to the netdevsim selftests before adding tests for the new features. To allow this new selftest to work, netdevsim's hw_features are expanded.

Sabrina Dubroca (8):
netdevsim: add more hw_features
selftests: netdevsim: add a test checking ethtool features
macsec: add some of the lower device's features when offloading
macsec: clean up local variables in macsec_notify
macsec: inherit lower device's TSO limits when offloading
selftests: move macsec offload tests from net/rtnetlink to
drivers/net/netdvesim
selftests: netdevsim: add test toggling macsec offload
selftests: netdevsim: add ethtool features to macsec offload tests

 drivers/net/macsec.c                          |  64 +++++++---
 drivers/net/netdevsim/netdev.c                |   6 +-
 .../selftests/drivers/net/netdevsim/Makefile  |   2 +
 .../selftests/drivers/net/netdevsim/config    |   1 +
 .../drivers/net/netdevsim/ethtool-features.sh |  31 +++++
 .../drivers/net/netdevsim/macsec-offload.sh   | 117 ++++++++++++++++++
 tools/testing/selftests/net/rtnetlink.sh      |  68 ----------
 7 files changed, 200 insertions(+), 89 deletions(-)
 create mode 100644 tools/testing/selftests/drivers/net/netdevsim/ethtool-features.sh
 create mode 100755 tools/testing/selftests/drivers/net/netdevsim/macsec-offload.sh
Signature · 1 line
2.47.0