Re: [zeromq-dev] Setting 802.1p VLAN Priority
As with all socket options, it's possible to set it, just nobody has needed it before. Just send a PR. On Mon, 9 Nov 2020 at 19:34, Arnaud Loonstra wrote: > > 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@lists.zeromq.org > > https://lists.zeromq.org/mailman/listinfo/zeromq-dev > > > ___ > zeromq-dev mailing list > zeromq-dev@lists.zeromq.org > https://lists.zeromq.org/mailman/listinfo/zeromq-dev ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org https://lists.zeromq.org/mailman/listinfo/zeromq-dev
Re: [zeromq-dev] Setting 802.1p VLAN Priority
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@lists.zeromq.org https://lists.zeromq.org/mailman/listinfo/zeromq-dev ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org https://lists.zeromq.org/mailman/listinfo/zeromq-dev
[zeromq-dev] Setting 802.1p VLAN Priority
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@lists.zeromq.org https://lists.zeromq.org/mailman/listinfo/zeromq-dev