diff options
-rw-r--r-- | drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c b/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c index 53ac2fb78ab6..e9b785e0cc94 100644 --- a/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c +++ b/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c | |||
@@ -134,10 +134,8 @@ static int pch_ptp_match(struct sk_buff *skb, u16 uid_hi, u32 uid_lo, u16 seqid) | |||
134 | u16 *hi, *id; | 134 | u16 *hi, *id; |
135 | u32 lo; | 135 | u32 lo; |
136 | 136 | ||
137 | if ((sk_run_filter(skb, ptp_filter) != PTP_CLASS_V2_IPV4) && | 137 | if (sk_run_filter(skb, ptp_filter) == PTP_CLASS_NONE) |
138 | (sk_run_filter(skb, ptp_filter) != PTP_CLASS_V1_IPV4)) { | ||
139 | return 0; | 138 | return 0; |
140 | } | ||
141 | 139 | ||
142 | offset = ETH_HLEN + IPV4_HLEN(data) + UDP_HLEN; | 140 | offset = ETH_HLEN + IPV4_HLEN(data) + UDP_HLEN; |
143 | 141 | ||