From patchwork Tue May 23 14:29:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miroslav Lichvar X-Patchwork-Id: 766025 X-Patchwork-Delegate: linville@tuxdriver.com Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3wXHwk3Vjxz9s0m for ; Wed, 24 May 2017 00:29:42 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937376AbdEWO3k (ORCPT ); Tue, 23 May 2017 10:29:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53656 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936543AbdEWO3f (ORCPT ); Tue, 23 May 2017 10:29:35 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 007DF804EC; Tue, 23 May 2017 14:29:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 007DF804EC Authentication-Results: ext-mx03.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx03.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=mlichvar@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 007DF804EC Received: from holly.brq.redhat.com. (holly.brq.redhat.com [10.34.24.121]) by smtp.corp.redhat.com (Postfix) with ESMTP id 285ED7BCAE; Tue, 23 May 2017 14:29:34 +0000 (UTC) From: Miroslav Lichvar To: netdev@vger.kernel.org Cc: Richard Cochran , "John W . Linville" Subject: [PATCH ethtool 2/2] ethtool: add support for HWTSTAMP_FILTER_NTP_ALL Date: Tue, 23 May 2017 16:29:30 +0200 Message-Id: <20170523142930.28181-3-mlichvar@redhat.com> In-Reply-To: <20170523142930.28181-1-mlichvar@redhat.com> References: <20170523142930.28181-1-mlichvar@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Tue, 23 May 2017 14:29:35 +0000 (UTC) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Add HWTSTAMP_FILTER_NTP_ALL to the list of hardware receive filters which can be printed by ethtool -T. CC: Richard Cochran Signed-off-by: Miroslav Lichvar --- ethtool.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ethtool.c b/ethtool.c index ad18704..85b320c 100644 --- a/ethtool.c +++ b/ethtool.c @@ -1589,7 +1589,7 @@ static char *tx_type_labels[N_TX_TYPES] = { "one-step-sync (HWTSTAMP_TX_ONESTEP_SYNC)", }; -#define N_RX_FILTERS (HWTSTAMP_FILTER_PTP_V2_DELAY_REQ + 1) +#define N_RX_FILTERS (HWTSTAMP_FILTER_NTP_ALL + 1) static char *rx_filter_labels[N_RX_FILTERS] = { "none (HWTSTAMP_FILTER_NONE)", @@ -1607,6 +1607,7 @@ static char *rx_filter_labels[N_RX_FILTERS] = { "ptpv2-event (HWTSTAMP_FILTER_PTP_V2_EVENT)", "ptpv2-sync (HWTSTAMP_FILTER_PTP_V2_SYNC)", "ptpv2-delay-req (HWTSTAMP_FILTER_PTP_V2_DELAY_REQ)", + "ntp-all (HWTSTAMP_FILTER_NTP_ALL)", }; static int dump_tsinfo(const struct ethtool_ts_info *info)