From 77e03fc8be96102f821b46b12b011930ac5bffbb Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Thu, 8 Mar 2018 15:47:33 +0200 Subject: [PATCH] drivers: eth: mcux: Prioritize received PTP packets to high Set the received PTP packet priority high so that those packets will be handled first. Signed-off-by: Jukka Rissanen --- drivers/ethernet/eth_mcux.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/ethernet/eth_mcux.c b/drivers/ethernet/eth_mcux.c index 54647583778..42a61df6e96 100644 --- a/drivers/ethernet/eth_mcux.c +++ b/drivers/ethernet/eth_mcux.c @@ -389,6 +389,8 @@ static bool eth_get_ptp_data(struct net_if *iface, struct net_pkt *pkt, } } + net_pkt_set_priority(pkt, NET_PRIORITY_CA); + if (ptpTsData) { /* Cannot use GPTP_HDR as net_pkt fields are not all filled */