Blame SOURCES/0007-ethtool-add-support-for-HWTSTAMP_FILTER_NTP_ALL.patch

4cc9fb
From ee10917f5cb60f8602deac815ec9923258fa6ab2 Mon Sep 17 00:00:00 2001
4cc9fb
From: Miroslav Lichvar <mlichvar@redhat.com>
4cc9fb
Date: Tue, 23 May 2017 16:29:30 +0200
4cc9fb
Subject: [PATCH 7/7] ethtool: add support for HWTSTAMP_FILTER_NTP_ALL
4cc9fb
4cc9fb
Add HWTSTAMP_FILTER_NTP_ALL to the list of hardware receive
4cc9fb
filters which can be printed by ethtool -T.
4cc9fb
4cc9fb
CC: Richard Cochran <richardcochran@gmail.com>
4cc9fb
Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>
4cc9fb
Signed-off-by: John W. Linville <linville@tuxdriver.com>
4cc9fb
(cherry picked from commit d976d5dada4e58d3fdc31506943307159289493a)
4cc9fb
---
4cc9fb
 ethtool.c | 3 ++-
4cc9fb
 1 file changed, 2 insertions(+), 1 deletion(-)
4cc9fb
4cc9fb
diff --git a/ethtool.c b/ethtool.c
4cc9fb
index 8eba6e6..5465f59 100644
4cc9fb
--- a/ethtool.c
4cc9fb
+++ b/ethtool.c
4cc9fb
@@ -1583,7 +1583,7 @@ static char *tx_type_labels[N_TX_TYPES] = {
4cc9fb
 	"one-step-sync         (HWTSTAMP_TX_ONESTEP_SYNC)",
4cc9fb
 };
4cc9fb
 
4cc9fb
-#define N_RX_FILTERS (HWTSTAMP_FILTER_PTP_V2_DELAY_REQ + 1)
4cc9fb
+#define N_RX_FILTERS (HWTSTAMP_FILTER_NTP_ALL + 1)
4cc9fb
 
4cc9fb
 static char *rx_filter_labels[N_RX_FILTERS] = {
4cc9fb
 	"none                  (HWTSTAMP_FILTER_NONE)",
4cc9fb
@@ -1601,6 +1601,7 @@ static char *rx_filter_labels[N_RX_FILTERS] = {
4cc9fb
 	"ptpv2-event           (HWTSTAMP_FILTER_PTP_V2_EVENT)",
4cc9fb
 	"ptpv2-sync            (HWTSTAMP_FILTER_PTP_V2_SYNC)",
4cc9fb
 	"ptpv2-delay-req       (HWTSTAMP_FILTER_PTP_V2_DELAY_REQ)",
4cc9fb
+	"ntp-all               (HWTSTAMP_FILTER_NTP_ALL)",
4cc9fb
 };
4cc9fb
 
4cc9fb
 static int dump_tsinfo(const struct ethtool_ts_info *info)
4cc9fb
-- 
4cc9fb
1.8.3.1
4cc9fb