]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
netdevsim: add ipsec hw_features
authorHangbin Liu <liuhangbin@gmail.com>
Wed, 15 Oct 2025 08:36:49 +0000 (08:36 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 16 Oct 2025 22:44:32 +0000 (15:44 -0700)
commit38c31c2620de4e570539a2a461eb62d0e7e692f7
tree830a2f0d77616c369157f9916b7f7d4a6fb47315
parentbd853a59a87ecf9fc060dd54b10a3a94e9786182
netdevsim: add ipsec hw_features

Currently, netdevsim only sets dev->features, which makes the ESP features
fixed. For example:

  # ethtool -k eni0np1 | grep esp
  tx-esp-segmentation: on [fixed]
  esp-hw-offload: on [fixed]
  esp-tx-csum-hw-offload: on [fixed]

This patch adds the ESP features to hw_features, allowing them to be
changed manually. For example:

  # ethtool -k eni0np1 | grep esp
  tx-esp-segmentation: on
  esp-hw-offload: on
  esp-tx-csum-hw-offload: on

Suggested-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Reviewed-by: Sabrina Dubroca <sd@queasysnail.net>
Link: https://patch.msgid.link/20251015083649.54744-1-liuhangbin@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/netdevsim/ipsec.c