|
|
268297 |
From 5d4ecfe153434ffae3bf9858b870eafc70e55ccf Mon Sep 17 00:00:00 2001
|
|
|
268297 |
From: Michal Kubecek <mkubecek@suse.cz>
|
|
|
268297 |
Date: Mon, 19 Oct 2020 23:32:49 +0200
|
|
|
268297 |
Subject: [PATCH 37/37] netlink: add message descriptions for pause stats
|
|
|
268297 |
|
|
|
268297 |
Add message descriptions for pretty printing of new attributes used for pause
|
|
|
268297 |
statistics.
|
|
|
268297 |
|
|
|
268297 |
Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
|
|
|
268297 |
(cherry picked from commit 9922adcbb4383c50eb8d0046f283873b999b40ba)
|
|
|
268297 |
---
|
|
|
268297 |
netlink/desc-ethtool.c | 7 +++++++
|
|
|
268297 |
1 file changed, 7 insertions(+)
|
|
|
268297 |
|
|
|
268297 |
diff --git a/netlink/desc-ethtool.c b/netlink/desc-ethtool.c
|
|
|
268297 |
index 54f057915d6d..8dd4a91ad0d7 100644
|
|
|
268297 |
--- a/netlink/desc-ethtool.c
|
|
|
268297 |
+++ b/netlink/desc-ethtool.c
|
|
|
268297 |
@@ -178,12 +178,19 @@ static const struct pretty_nla_desc __coalesce_desc[] = {
|
|
|
268297 |
NLATTR_DESC_U32(ETHTOOL_A_COALESCE_RATE_SAMPLE_INTERVAL),
|
|
|
268297 |
};
|
|
|
268297 |
|
|
|
268297 |
+static const struct pretty_nla_desc __pause_stats_desc[] = {
|
|
|
268297 |
+ NLATTR_DESC_BINARY(ETHTOOL_A_PAUSE_STAT_PAD),
|
|
|
268297 |
+ NLATTR_DESC_U64(ETHTOOL_A_PAUSE_STAT_TX_FRAMES),
|
|
|
268297 |
+ NLATTR_DESC_U64(ETHTOOL_A_PAUSE_STAT_RX_FRAMES),
|
|
|
268297 |
+};
|
|
|
268297 |
+
|
|
|
268297 |
static const struct pretty_nla_desc __pause_desc[] = {
|
|
|
268297 |
NLATTR_DESC_INVALID(ETHTOOL_A_PAUSE_UNSPEC),
|
|
|
268297 |
NLATTR_DESC_NESTED(ETHTOOL_A_PAUSE_HEADER, header),
|
|
|
268297 |
NLATTR_DESC_BOOL(ETHTOOL_A_PAUSE_AUTONEG),
|
|
|
268297 |
NLATTR_DESC_BOOL(ETHTOOL_A_PAUSE_RX),
|
|
|
268297 |
NLATTR_DESC_BOOL(ETHTOOL_A_PAUSE_TX),
|
|
|
268297 |
+ NLATTR_DESC_NESTED(ETHTOOL_A_PAUSE_STATS, pause_stats),
|
|
|
268297 |
};
|
|
|
268297 |
|
|
|
268297 |
static const struct pretty_nla_desc __eee_desc[] = {
|
|
|
268297 |
--
|
|
|
268297 |
2.26.2
|
|
|
268297 |
|