summaryrefslogtreecommitdiff
path: root/net/ethtool/pause.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ethtool/pause.c')
-rw-r--r--net/ethtool/pause.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/net/ethtool/pause.c b/net/ethtool/pause.c
index 0f9af1e66548..ccaec8e878b2 100644
--- a/net/ethtool/pause.c
+++ b/net/ethtool/pause.c
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: GPL-2.0-only
-#include "netlink.h"
#include "common.h"
+#include "netlink.h"
struct pause_req_info {
struct ethnl_req_info base;
@@ -28,6 +28,7 @@ const struct nla_policy ethnl_pause_get_policy[] = {
};
static int pause_parse_request(struct ethnl_req_info *req_base,
+ const struct genl_info *info,
struct nlattr **tb,
struct netlink_ext_ack *extack)
{
@@ -130,7 +131,9 @@ static int pause_put_stats(struct sk_buff *skb,
if (ethtool_put_stat(skb, pause_stats->tx_pause_frames,
ETHTOOL_A_PAUSE_STAT_TX_FRAMES, pad) ||
ethtool_put_stat(skb, pause_stats->rx_pause_frames,
- ETHTOOL_A_PAUSE_STAT_RX_FRAMES, pad))
+ ETHTOOL_A_PAUSE_STAT_RX_FRAMES, pad) ||
+ ethtool_put_stat(skb, pause_stats->tx_pause_storm_events,
+ ETHTOOL_A_PAUSE_STAT_TX_PAUSE_STORM_EVENTS, pad))
goto err_cancel;
nla_nest_end(skb, nest);