Skip to content

Commit ca9df7e

Browse files
mlichvardavem330
authored andcommitted
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]> Acked-by: Richard Cochran <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 42a928c commit ca9df7e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/net/ethernet/ti/netcp_ethss.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2651,7 +2651,6 @@ static int gbe_hwtstamp_set(struct gbe_intf *gbe_intf, struct ifreq *ifr)
26512651
case HWTSTAMP_FILTER_NONE:
26522652
cpts_rx_enable(cpts, 0);
26532653
break;
2654-
case HWTSTAMP_FILTER_ALL:
26552654
case HWTSTAMP_FILTER_PTP_V1_L4_EVENT:
26562655
case HWTSTAMP_FILTER_PTP_V1_L4_SYNC:
26572656
case HWTSTAMP_FILTER_PTP_V1_L4_DELAY_REQ:

0 commit comments

Comments
 (0)