Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net Fix vlan tag sending in the ETHERCAP_VLAN_HWTAGGING ...



details:   https://anonhg.NetBSD.org/src/rev/f885e15f5d37
branches:  trunk
changeset: 551633:f885e15f5d37
user:      drochner <drochner%NetBSD.org@localhost>
date:      Tue Sep 09 14:22:19 2003 +0000

description:
Fix vlan tag sending in the ETHERCAP_VLAN_HWTAGGING case.
Makes my "txp" work and fixes "bge" -- PR kern/20363 by Scott Ellis.

diffstat:

 sys/net/if_vlan.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r a67a7ff6f6b3 -r f885e15f5d37 sys/net/if_vlan.c
--- a/sys/net/if_vlan.c Tue Sep 09 13:40:59 2003 +0000
+++ b/sys/net/if_vlan.c Tue Sep 09 14:22:19 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_vlan.c,v 1.35 2003/01/17 08:11:56 itojun Exp $      */
+/*     $NetBSD: if_vlan.c,v 1.36 2003/09/09 14:22:19 drochner Exp $    */
 
 /*-
  * Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
@@ -85,7 +85,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_vlan.c,v 1.35 2003/01/17 08:11:56 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vlan.c,v 1.36 2003/09/09 14:22:19 drochner Exp $");
 
 #include "opt_inet.h"
 #include "bpfilter.h"
@@ -740,6 +740,7 @@
                                continue;
                        }
                        *(u_int *)(mtag + 1) = ifv->ifv_tag;
+                       m_tag_prepend(m, mtag);
                } else {
                        /*
                         * insert the tag ourselves



Home | Main Index | Thread Index | Old Index