[zeromq-dev] Setting 802.1p VLAN Priority
Arnaud Loonstra
arnaud at sphaero.org
Mon Nov 9 20:32:59 CET 2020
I guess you didn't get a reply just yet. I don't go very deep into the
core of libzmq. It seems you already had look yourself. I'm not aware of
a socket option you are looking for but we welcome a patch that
implements it?
Perhaps some of the other maintainers can shred a light on whether this
is already possible in libzmq or why not.
Rg,
Arnaud
On 06-11-2020 15:46, Andy Heroff via zeromq-dev wrote:
> Hi,
>
> We use 0MQ for messaging between applications across various VLANs
> within our system. Recently, we have added a requirement in which we
> would like to set the 802.1p priority field to something other than 0
> for a subset of these connections (most, but not all). There doesn't
> appear to be any method exposed to directly change the priority of the
> 0MQ socket (e.g. setsockopt for SOL_SOCKET/SO_PRIORITY which would set
> the sk_priority field, and then get translated by egress-qos-map on the
> outbound link) within 0MQ.
>
> ZMQ_TOS is close, but by my understanding, that relies on (for us on
> top of Linux at least) a pre-determined mapping in the kernel and
> calculations based on DSCP values. Also, it doesn't appear to offer a
> mapping to the value of 3 which we're trying to set, even if we tried
> that route.
>
> As a temporary solution, we created a quick patch on top of ZMQ to
> allow directly setting the SO_PRIORITY via a new option in
> zmq::options_t::setsockopt, but it would be easier, of course, if we
> didn't have to patch 0MQ to accompish this end. Is there another method
> to set sk_priority directly via already existing 0MQ methods that I'm
> unaware of?
>
> Thanks in advance!
>
> --- Andy
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> https://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
More information about the zeromq-dev
mailing list