ethtool: provide coalescing parameters with COALESCE_GET request
Implement COALESCE_GET request to get coalescing parameters of a network device. These are traditionally available via ETHTOOL_GCOALESCE ioctl request. This commit adds only support for device coalescing parameters, not per queue coalescing parameters. Omit attributes with zero values unless they are declared as supported (i.e. the corresponding bit in ethtool_ops::supported_coalesce_params is set). Signed-off-by: Michal Kubecek <mkubecek@suse.cz> Reviewed-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
b51fb7711a
commit
217275453b
@@ -341,6 +341,7 @@ extern const struct ethnl_request_ops ethnl_features_request_ops;
|
||||
extern const struct ethnl_request_ops ethnl_privflags_request_ops;
|
||||
extern const struct ethnl_request_ops ethnl_rings_request_ops;
|
||||
extern const struct ethnl_request_ops ethnl_channels_request_ops;
|
||||
extern const struct ethnl_request_ops ethnl_coalesce_request_ops;
|
||||
|
||||
int ethnl_set_linkinfo(struct sk_buff *skb, struct genl_info *info);
|
||||
int ethnl_set_linkmodes(struct sk_buff *skb, struct genl_info *info);
|
||||
|
Reference in New Issue
Block a user