Changeset 21847


Ignore:
Timestamp:
2010-06-20T07:42:44+02:00 (7 years ago)
Author:
juhosg
Message:

backfire: swconfig: Fix a bug in use of SWITCH_PORT_FLAG_TAGGED (backport of r21708)

SWITCH_PORT_FLAG_TAGGED is a bit index, not a bit mask.

Signed-off-by: Martin Mares <mj@…>
Signed-off-by: Patrick Horn <patrick.horn@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/backfire/target/linux/generic-2.6/files/drivers/net/phy/swconfig.c

    r21846 r21847  
    9393                        return -EINVAL; 
    9494 
    95                 if (dev->set_port_pvid && !(ports[i].flags & SWITCH_PORT_FLAG_TAGGED)) 
     95                if (dev->set_port_pvid && !(ports[i].flags & (1 << SWITCH_PORT_FLAG_TAGGED))) 
    9696                        dev->set_port_pvid(dev, ports[i].id, val->port_vlan); 
    9797        } 
Note: See TracChangeset for help on using the changeset viewer.