On Tue Aug 30 2022, Miroslav Lichvar wrote: >> @@ -196,6 +196,19 @@ static int udp_open(struct transport *t, struct >> interface *iface, >> pr_warning("Failed to set general DSCP priority."); >> } >> >> + socket_priority = config_get_int(t->cfg, "global", "socket_priority"); >> + >> + if (socket_priority && >> + setsockopt(efd, SOL_SOCKET, SO_PRIORITY, &socket_priority, >> + sizeof(socket_priority))) { >> + pr_warning("Failed to set event socket priority."); >> + } >> + if (socket_priority && >> + setsockopt(gfd, SOL_SOCKET, SO_PRIORITY, &socket_priority, >> + sizeof(socket_priority))) { >> + pr_warning("Failed to set general socket priority."); > > Is it useful to set the priority for non-event messages? Their timing > is not so important and there can be a lot of traffic generated > remotely (e.g. management messages).
Good question :-). I've followed the same logic as for the Layer 2 transport. See commit c15e8c76000c ("ptp4l: Add configuration option for socket priority"). Thanks, Kurt
signature.asc
Description: PGP signature
_______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel