netdevsim: add more hw_features
authorSabrina Dubroca <sd@queasysnail.net>
Wed, 6 Nov 2024 23:13:27 +0000 (00:13 +0100)
committerJakub Kicinski <kuba@kernel.org>
Mon, 11 Nov 2024 22:12:20 +0000 (14:12 -0800)
commit494bd83bb5193dbd56a3dac3965b0bb6c312c930
treeba8ce13ae5d56fc83b67c9963a6439e14fafac2b
parent4d1d3b52dcec4e3aad1e66595ad0e41c92e01189
netdevsim: add more hw_features

netdevsim currently only set HW_TC in its hw_features, but other
features should also be present to better reflect the behavior of real
HW.

In my macsec offload testing, this ends up as HW_CSUM being missing
from hw_features, so it doesn't stick in wanted_features when offload
is turned off. Then HW_CSUM (and thus TSO, thanks to
netdev_fix_features) is not automatically turned back on when offload
is re-enabled.

Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/b918dc4dd76410a57f7516a855f66b0a2bd58326.1730929545.git.sd@queasysnail.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/netdevsim/netdev.c