ken-hutchinson commented on issue #16814: URL: https://github.com/apache/nuttx/issues/16814#issuecomment-3356050752
I wanted to post a follow up, as a thank you for your help. It's pretty easy to create a RAW_SOCK message, using the netpkt example, and easy to add the 802.1q tag. But I couldn't get it to work well. The raw msg's themselves go through, but I had another pthread sending UDP msg's and they would only go through when the raw msg's stopped. I don't know if this was due to nuttx or the LAN937x, but I suspect the switch. It would also lose it's connection after the raw msgs. A ping would fail and a TCP msg would take 6 seconds to return. My solution was to use 802.1p on UDP msgs using this for the socket where you need priority: int dscp = 0xfc; // priority tag using DSCP bits [5:3] (must be configured on the switch) setsockopt(udpSocket, IPPROTO_IP, IP_TOS, &dscp, sizeof(dscp)); Much easier to configure and seems to work. I get HI_PRIO packets in the switch. Difficult to actually prove and quantify how much it helps. Thanks all -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
