diff options
author | Miroslav Lichvar <mlichvar@redhat.com> | 2017-05-19 17:52:36 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-21 19:37:32 +0200 |
commit | e3412575488ac2408f737a14296cce34c9d8b4f8 (patch) | |
tree | d3b98453b57ba45ac7c2cf90ed87514a8a607d6a /drivers/net/ethernet/qlogic/qede | |
parent | net: define receive timestamp filter for NTP (diff) | |
download | linux-e3412575488ac2408f737a14296cce34c9d8b4f8.tar.xz linux-e3412575488ac2408f737a14296cce34c9d8b4f8.zip |
net: ethernet: update drivers to handle HWTSTAMP_FILTER_NTP_ALL
Include HWTSTAMP_FILTER_NTP_ALL in net_hwtstamp_validate() as a valid
filter and update drivers which can timestamp all packets, or which
explicitly list unsupported filters instead of using a default case, to
handle the filter.
CC: Richard Cochran <richardcochran@gmail.com>
CC: Willem de Bruijn <willemb@google.com>
Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qede')
-rw-r--r-- | drivers/net/ethernet/qlogic/qede/qede_ptp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/qlogic/qede/qede_ptp.c b/drivers/net/ethernet/qlogic/qede/qede_ptp.c index 24f06e2ef43e..9b2280badaf7 100644 --- a/drivers/net/ethernet/qlogic/qede/qede_ptp.c +++ b/drivers/net/ethernet/qlogic/qede/qede_ptp.c @@ -244,6 +244,7 @@ static int qede_ptp_cfg_filters(struct qede_dev *edev) break; case HWTSTAMP_FILTER_ALL: case HWTSTAMP_FILTER_SOME: + case HWTSTAMP_FILTER_NTP_ALL: ptp->rx_filter = HWTSTAMP_FILTER_NONE; rx_filter = QED_PTP_FILTER_ALL; break; |