net: move HDS config from ethtool state
Separate the HDS config from the ethtool state struct. The HDS config contains just simple parameters, not state. Having it as a separate struct will make it easier to clone / copy and also long term potentially make it per-queue. Reviewed-by: Michael Chan <michael.chan@broadcom.com> Link: https://patch.msgid.link/20250119020518.1962249-2-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
@@ -63,6 +63,7 @@ struct dsa_port;
|
||||
struct ip_tunnel_parm_kern;
|
||||
struct macsec_context;
|
||||
struct macsec_ops;
|
||||
struct netdev_config;
|
||||
struct netdev_name_node;
|
||||
struct sd_flow_limit;
|
||||
struct sfp_bus;
|
||||
@@ -2410,6 +2411,8 @@ struct net_device {
|
||||
const struct udp_tunnel_nic_info *udp_tunnel_nic_info;
|
||||
struct udp_tunnel_nic *udp_tunnel_nic;
|
||||
|
||||
/** @cfg: net_device queue-related configuration */
|
||||
struct netdev_config *cfg;
|
||||
struct ethtool_netdev_state *ethtool;
|
||||
|
||||
/* protected by rtnl_lock */
|
||||
|
||||
Reference in New Issue
Block a user