net: netcp: fix check of requested timestamping filter
Subsystems (2)
PATCH 1/1 net: netcp: fix check of requested timestamping filter
The driver doesn't support timestamping of all received packets and should return error when trying to enable the HWTSTAMP_FILTER_ALL filter.
Cc WingMan Kwok <[email protected]>
Cc Richard Cochran <[email protected]>
Signed-off-by Miroslav Lichvar <[email protected]>
--- drivers/net/ethernet/ti/netcp_ethss.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/ethernet/ti/netcp_ethss.c +0 -1
@@ -2651,7 +2651,6 @@ static int gbe_hwtstamp_set(struct gbe_intf *gbe_intf, struct ifreq *ifr)case HWTSTAMP_FILTER_NONE :cpts_rx_enable (cpts,0 );break ; -case HWTSTAMP_FILTER_ALL :case HWTSTAMP_FILTER_PTP_V1_L4_EVENT :case HWTSTAMP_FILTER_PTP_V1_L4_SYNC :case HWTSTAMP_FILTER_PTP_V1_L4_DELAY_REQ :
Signature · 1 line
2.9.3
Quoted 7 lines · Miroslav Lichvar
The driver doesn't support timestamping of all received packets and should return error when trying to enable the
HWTSTAMP_FILTER_ALLfilter.Cc WingMan Kwok <[email protected]>Cc Richard Cochran <[email protected]>Signed-off-by Miroslav Lichvar <[email protected]>
Acked-by Richard Cochran <[email protected]>
David Miller
AppliedFrom: Miroslav Lichvar <[email protected]>
Date: Mon, 15 May 2017 16:04:36 +0200
Quoted 7 lines
The driver doesn't support timestamping of all received packets and should return error when trying to enable the
HWTSTAMP_FILTER_ALLfilter.Cc WingMan Kwok <[email protected]>Cc Richard Cochran <[email protected]>Signed-off-by Miroslav Lichvar <[email protected]>
Applied, thank you.