Skip to content

Commit 3bbf067

Browse files
committed
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 <[email protected]>
1 parent 26b11f2 commit 3bbf067

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/ethernet/eth_mcux.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,8 @@ static bool eth_get_ptp_data(struct net_if *iface, struct net_pkt *pkt,
393393
}
394394
}
395395

396+
net_pkt_set_priority(pkt, NET_PRIORITY_CA);
397+
396398
if (ptpTsData) {
397399

398400
/* Cannot use GPTP_HDR as net_pkt fields are not all filled */

0 commit comments

Comments
 (0)