diff options
| author | msaitoh <msaitoh@NetBSD.org> | 2020-03-03 05:41:36 +0000 |
|---|---|---|
| committer | msaitoh <msaitoh@NetBSD.org> | 2020-03-03 05:41:36 +0000 |
| commit | aae6510a9dfba1bffccd0c5c09dcfdadce7b9681 (patch) | |
| tree | 08836aa8c354885e427bcbc3f81e1000d2e115f0 /sys/dev | |
| parent | b9eb7375f3cbcc8ccc1eb19e3465cc732b5f57d4 (diff) | |
Don't clear CFI and priority bit to pass them to the upper layer.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/pci/if_ti.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/dev/pci/if_ti.c b/sys/dev/pci/if_ti.c index 641348726b4..777da2f74a7 100644 --- a/sys/dev/pci/if_ti.c +++ b/sys/dev/pci/if_ti.c @@ -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 @@ ti_rxeof(struct ti_softc *sc) 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); } |
