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 <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2018-03-08 15:47:33 +02:00 committed by Anas Nashif
parent 18d327c432
commit 77e03fc8be
1 changed files with 2 additions and 0 deletions

View File

@ -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 */