Re: [I] [HELP] add 802.1Q header [nuttx]</span></a></span> </h1> <p class="darkgray font13"> <span class="sender pipe"><a href="/search?l=commits@nuttx.apache.org&q=from:%22via+GitHub%22" rel="nofollow"><span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">via GitHub</span></span></a></span> <span class="date"><a href="/search?l=commits@nuttx.apache.org&q=date:20251018" rel="nofollow">Sat, 18 Oct 2025 05:44:24 -0700</a></span> </p> </div> <div itemprop="articleBody" class="msgBody"> <!--X-Body-of-Message--> <pre> ken-hutchinson commented on issue #16814: URL: <a rel="nofollow" href="https://github.com/apache/nuttx/issues/16814#issuecomment-3356050752">https://github.com/apache/nuttx/issues/16814#issuecomment-3356050752</a></pre><pre> 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 </pre> </div> <div class="msgButtons margintopdouble"> <ul class="overflow"> <li class="msgButtonItems"><a class="button buttonleft " accesskey="p" href="msg143830.html">Previous message</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="c" href="thrd9.html#145526">View by thread</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="i" href="maillist.html#145526">View by date</a></li> <li class="msgButtonItems textalignright"><a class="button buttonright " accesskey="n" href="msg143706.html">Next message</a></li> </ul> </div> <a name="tslice"></a> <div class="tSliceList margintopdouble"> <ul class="icons monospace"> <li class="icons-email"><span class="subject"><a href="msg143704.html">Re: [I] [HELP] <title>add 802.1Q header [nuttx]</a></span> <span class="sender italic">via GitHub</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg143707.html">Re: [I] [HELP] <title>add 802.1Q header [nuttx]</a></span> <span class="sender italic">via GitHub</span></li> <li class="icons-email"><span class="subject"><a href="msg143727.html">Re: [I] [HELP] <title>add 802.1Q header [nuttx]</a></span> <span class="sender italic">via GitHub</span></li> <li class="icons-email"><span class="subject"><a href="msg143801.html">Re: [I] [HELP] <title>add 802.1Q header [nuttx]</a></span> <span class="sender italic">via GitHub</span></li> <li class="icons-email"><span class="subject"><a href="msg143815.html">Re: [I] [HELP] <title>add 802.1Q header [nuttx]</a></span> <span class="sender italic">via GitHub</span></li> <li class="icons-email"><span class="subject"><a href="msg143830.html">Re: [I] [HELP] <title>add 802.1Q header [nuttx]</a></span> <span class="sender italic">via GitHub</span></li> <li class="icons-email tSliceCur"><span class="subject">Re: [I] [HELP] <title>add 802.1Q header [nuttx]</span> <span class="sender italic">via GitHub</span></li> </ul> </ul> </div> <div class="overflow msgActions margintopdouble"> <div class="msgReply" > <h2> Reply via email to </h2> <form method="POST" action="/mailto.php"> <input type="hidden" name="subject" value="Re: [I] [HELP] <title>add 802.1Q header [nuttx]"> <input type="hidden" name="msgid" value="I_kwDODZiUac7Eej43-c7702270-bbb1-46eb-9b94-6fd85d00f46d@gitbox.apache.org"> <input type="hidden" name="relpath" value="commits@nuttx.apache.org/msg145526.html"> <input type="submit" value=" via GitHub "> </form> </div> </div> </div> <div class="aside" role="complementary"> <div class="logo"> <a href="/"><img src="/logo.png" width=247 height=88 alt="The Mail Archive"></a> </div> <form class="overflow" action="/search" method="get"> <input type="hidden" name="l" value="commits@nuttx.apache.org"> <label class="hidden" for="q">Search the site</label> <input class="submittext" type="text" id="q" name="q" placeholder="Search commits"> <input class="submitbutton" name="submit" type="image" src="/submit.png" alt="Submit"> </form> <div class="nav margintop" id="nav" role="navigation"> <ul class="icons font16"> <li class="icons-home"><a href="/">The Mail Archive home</a></li> <li class="icons-list"><a href="/commits@nuttx.apache.org/">commits - all messages</a></li> <li class="icons-about"><a href="/commits@nuttx.apache.org/info.html">commits - about the list</a></li> <li class="icons-expand"><a href="/search?l=commits@nuttx.apache.org&q=subject:%22Re%5C%3A+%5C%5BI%5C%5D+%5C%5BHELP%5C%5D+%3Ctitle%3Eadd+802.1Q+header+%5C%5Bnuttx%5C%5D%22&o=newest&f=1" title="e" id="e">Expand</a></li> <li class="icons-prev"><a href="msg143830.html" title="p">Previous message</a></li> <li class="icons-next"><a href="msg143706.html" title="n">Next message</a></li> </ul> </div> <div class="listlogo margintopdouble"> </div> <div class="margintopdouble"> </div> </div> </div> <div class="footer" role="contentinfo"> <ul> <li><a href="/">The Mail Archive home</a></li> <li><a href="/faq.html#newlist">Add your mailing list</a></li> <li><a href="/faq.html">FAQ</a></li> <li><a href="/faq.html#support">Support</a></li> <li><a href="/faq.html#privacy">Privacy</a></li> <li class="darkgray">I_kwDODZiUac7Eej43-c7702270-bbb1-46eb-9b94-6fd85d00f46d@gitbox.apache.org</li> </ul> </div> </body> </html> <script>(function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'9cd0507498823e6e',t:'MTc3MDk0MzY0NA=='};var a=document.createElement('script');a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();</script>