@@ -890,13 +890,10 @@ static enum ptp_packet_state efx_ptp_match_rx(struct efx_nic *efx,
890
890
/* Process any queued receive events and corresponding packets
891
891
*
892
892
* q is returned with all the packets that are ready for delivery.
893
- * true is returned if at least one of those packets requires
894
- * synchronisation.
895
893
*/
896
- static bool efx_ptp_process_events (struct efx_nic * efx , struct sk_buff_head * q )
894
+ static void efx_ptp_process_events (struct efx_nic * efx , struct sk_buff_head * q )
897
895
{
898
896
struct efx_ptp_data * ptp = efx -> ptp_data ;
899
- bool rc = false;
900
897
struct sk_buff * skb ;
901
898
902
899
while ((skb = skb_dequeue (& ptp -> rxq ))) {
@@ -907,7 +904,6 @@ static bool efx_ptp_process_events(struct efx_nic *efx, struct sk_buff_head *q)
907
904
__skb_queue_tail (q , skb );
908
905
} else if (efx_ptp_match_rx (efx , skb ) ==
909
906
PTP_PACKET_STATE_MATCHED ) {
910
- rc = true;
911
907
__skb_queue_tail (q , skb );
912
908
} else if (time_after (jiffies , match -> expiry )) {
913
909
match -> state = PTP_PACKET_STATE_TIMED_OUT ;
@@ -921,8 +917,6 @@ static bool efx_ptp_process_events(struct efx_nic *efx, struct sk_buff_head *q)
921
917
break ;
922
918
}
923
919
}
924
-
925
- return rc ;
926
920
}
927
921
928
922
/* Complete processing of a received packet */
@@ -1088,12 +1082,10 @@ static void efx_ptp_worker(struct work_struct *work)
1088
1082
efx_ptp_drop_time_expired_events (efx );
1089
1083
1090
1084
__skb_queue_head_init (& tempq );
1091
- if (efx_ptp_process_events (efx , & tempq ) ||
1092
- !skb_queue_empty (& ptp_data -> txq )) {
1085
+ efx_ptp_process_events (efx , & tempq );
1093
1086
1094
- while ((skb = skb_dequeue (& ptp_data -> txq )))
1095
- efx_ptp_xmit_skb (efx , skb );
1096
- }
1087
+ while ((skb = skb_dequeue (& ptp_data -> txq )))
1088
+ efx_ptp_xmit_skb (efx , skb );
1097
1089
1098
1090
while ((skb = __skb_dequeue (& tempq )))
1099
1091
efx_ptp_process_rx (efx , skb );
0 commit comments