Page MenuHomeFreeBSD

D9607.id25199.diff
No OneTemporary

D9607.id25199.diff

Index: sys/dev/etherswitch/mtkswitch/mtkswitch_rt3050.c
===================================================================
--- sys/dev/etherswitch/mtkswitch/mtkswitch_rt3050.c
+++ sys/dev/etherswitch/mtkswitch/mtkswitch_rt3050.c
@@ -405,10 +405,11 @@
MTKSWITCH_LOCK(sc);
/* First, see if we can accomodate the request at all */
val = MTKSWITCH_READ(sc, MTKSWITCH_POC2);
- if ((val & POC2_UNTAG_VLAN) == 0 ||
- sc->sc_switchtype == MTK_SWITCH_RT3050) {
- val &= VUB_MASK;
- tmp = v->es_untagged_ports & v->es_member_ports;
+ if (sc->sc_switchtype == MTK_SWITCH_RT3050 ||
+ (val & POC2_UNTAG_VLAN) == 0) {
+ /* check port base untag setting */
+ val &= v->es_member_ports;
+ tmp = v->es_untagged_ports;
if (val != tmp) {
/* Cannot accomodate request */
MTKSWITCH_UNLOCK(sc);

File Metadata

Mime Type
text/plain
Expires
Sat, Mar 28, 5:52 AM (1 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30459717
Default Alt Text
D9607.id25199.diff (804 B)

Event Timeline