diff options
| author | John <john@cybersashi.com> | 2026-06-16 13:06:40 +0000 |
|---|---|---|
| committer | Adrian Chadd <adrian@FreeBSD.org> | 2026-06-16 13:11:14 +0000 |
| commit | 76f9bb488e77ae4cc220b0bbbc53f1a7315ef977 (patch) | |
| tree | 13abbbba37375900038f6781f4dbd4f77640b2e1 | |
| parent | f8b5df434e419e00272bfce343bf7da239081276 (diff) | |
rge: fix VLAN hardware tagging
Set the correct value in the TX descriptor for the vlan header.
PR: kern/295175
| -rw-r--r-- | sys/dev/rge/if_rge.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
