net/pch_gbe: Corrected the bug of PTP Rx filter
Subsystems (2)
PATCH 1/1 net/pch_gbe: Corrected the bug of PTP Rx filter
Signed-off-by Takahiro Shimizu <[email protected]>
--- .../net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c +4 -1
@@ -135,7 +135,10 @@ static int pch_ptp_match(struct sk_buff *skb, u16 uid_hi, u32 uid_lo, u16 seqid)u32 lo; sk_filter =sk_run_filter (skb, ptp_filter); -if ((sk_filter !=PTP_CLASS_V2 ) && (sk_filter !=PTP_CLASS_V1 )) +if ((sk_filter !=PTP_CLASS_V2_IPV4 ) && + (sk_filter !=PTP_CLASS_V1_IPV4 ) && + (sk_filter !=PTP_CLASS_V2_IPV6 ) && + (sk_filter !=PTP_CLASS_V1_IPV6 ))return 0 ; offset =ETH_HLEN +IPV4_HLEN (data) +UDP_HLEN ;
Signature · 1 line
1.7.4.4