The branch main has been updated by adrian: URL: https://cgit.FreeBSD.org/src/commit/?id=76f9bb488e77ae4cc220b0bbbc53f1a7315ef977
commit 76f9bb488e77ae4cc220b0bbbc53f1a7315ef977 Author: John <[email protected]> AuthorDate: 2026-06-16 13:06:40 +0000 Commit: Adrian Chadd <[email protected]> CommitDate: 2026-06-16 13:11:14 +0000 rge: fix VLAN hardware tagging Set the correct value in the TX descriptor for the vlan header. PR: kern/295175 --- sys/dev/rge/if_rge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/rge/if_rge.c b/sys/dev/rge/if_rge.c index 06f034ebd61d..800c1f797f6b 100644 --- a/sys/dev/rge/if_rge.c +++ b/sys/dev/rge/if_rge.c @@ -833,7 +833,7 @@ rge_encap(struct rge_softc *sc, struct rge_queues *q, struct mbuf *m, int idx) /* Set up hardware VLAN tagging */ if (m->m_flags & M_VLANTAG) { sc->sc_drv_stats.tx_offload_vlan_tag_set++; - cflags |= htole16(m->m_pkthdr.ether_vtag) | RGE_TDEXTSTS_VTAG; + cflags |= htons(m->m_pkthdr.ether_vtag) | RGE_TDEXTSTS_VTAG; } cur = idx;
