Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Don't clear CFI and priority bit to pass them to...



details:   https://anonhg.NetBSD.org/src/rev/a98b29ac4a2a
branches:  trunk
changeset: 849493:a98b29ac4a2a
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Tue Mar 03 05:41:36 2020 +0000

description:
Don't clear CFI and priority bit to pass them to the upper layer.

diffstat:

 sys/dev/pci/if_ti.c |  10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diffs (31 lines):

diff -r 72d06a75abfd -r a98b29ac4a2a sys/dev/pci/if_ti.c
--- a/sys/dev/pci/if_ti.c       Tue Mar 03 04:55:46 2020 +0000
+++ b/sys/dev/pci/if_ti.c       Tue Mar 03 05:41:36 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ti.c,v 1.115 2020/02/29 18:49:53 thorpej Exp $ */
+/* $NetBSD: if_ti.c,v 1.116 2020/03/03 05:41:36 msaitoh Exp $ */
 
 /*
  * Copyright (c) 1997, 1998, 1999
@@ -81,7 +81,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ti.c,v 1.115 2020/02/29 18:49:53 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ti.c,v 1.116 2020/03/03 05:41:36 msaitoh Exp $");
 
 #include "opt_inet.h"
 
@@ -2032,10 +2032,8 @@
                        break;
                }
 
-               if (cur_rx->ti_flags & TI_BDFLAG_VLAN_TAG) {
-                       /* ti_vlan_tag also has the priority, trim it */
-                       vlan_set_tag(m, cur_rx->ti_vlan_tag & 0x0fff);
-               }
+               if (cur_rx->ti_flags & TI_BDFLAG_VLAN_TAG)
+                       vlan_set_tag(m, cur_rx->ti_vlan_tag);
 
                if_percpuq_enqueue(ifp->if_percpuq, m);
        }



Home | Main Index | Thread Index | Old Index