diff options
author | Michal Kubecek <mkubecek@suse.cz> | 2020-03-28 00:01:13 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-30 07:32:36 +0200 |
commit | 9881418c7556954cd3f6c348bcd29a483bb5ac38 (patch) | |
tree | ed771d1badc30a7de80e00c8898660a2795d8b4d /net/ethtool/netlink.h | |
parent | ethtool: provide coalescing parameters with COALESCE_GET request (diff) | |
download | linux-9881418c7556954cd3f6c348bcd29a483bb5ac38.tar.xz linux-9881418c7556954cd3f6c348bcd29a483bb5ac38.zip |
ethtool: set coalescing parameters with COALESCE_SET request
Implement COALESCE_SET netlink request to set coalescing parameters of
a network device. These are traditionally set with ETHTOOL_SCOALESCE ioctl
request. This commit adds only support for device coalescing parameters,
not per queue coalescing parameters.
Like the ioctl implementation, the generic ethtool code checks if only
supported parameters are modified; if not, first offending attribute is
reported using extack.
v2: fix alignment (whitespace only)
Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | net/ethtool/netlink.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ethtool/netlink.h b/net/ethtool/netlink.h index 8b8991867ee5..c3fb4fe5a3b7 100644 --- a/net/ethtool/netlink.h +++ b/net/ethtool/netlink.h @@ -351,5 +351,6 @@ int ethnl_set_features(struct sk_buff *skb, struct genl_info *info); int ethnl_set_privflags(struct sk_buff *skb, struct genl_info *info); int ethnl_set_rings(struct sk_buff *skb, struct genl_info *info); int ethnl_set_channels(struct sk_buff *skb, struct genl_info *info); +int ethnl_set_coalesce(struct sk_buff *skb, struct genl_info *info); #endif /* _NET_ETHTOOL_NETLINK_H */ |