mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
ethtool: provide channel counts with CHANNELS_GET request
Implement CHANNELS_GET request to get channel counts of a network device. These are traditionally available via ETHTOOL_GCHANNELS ioctl request. Omit attributes for channel types which are not supported by driver or device (zero reported for maximum). v2: (all suggested by Jakub Kicinski) - minor cleanup in channels_prepare_data() - more descriptive channels_reply_size() - omit attributes with zero max count 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:
parent
bc9d1c995e
commit
0c84979c95
6 changed files with 169 additions and 2 deletions
|
@ -340,6 +340,7 @@ extern const struct ethnl_request_ops ethnl_wol_request_ops;
|
|||
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;
|
||||
|
||||
int ethnl_set_linkinfo(struct sk_buff *skb, struct genl_info *info);
|
||||
int ethnl_set_linkmodes(struct sk_buff *skb, struct genl_info *info);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue