s390/qeth: fix VLAN attribute in bridge_hostnotify udev event
[linux-2.6-microblaze.git] / drivers / s390 / net / qeth_l2_main.c
index 2188012..ff8a6cd 100644 (file)
@@ -1680,7 +1680,7 @@ static void qeth_bridgeport_an_set_cb(void *priv,
 
        l2entry = (struct qdio_brinfo_entry_l2 *)entry;
        code = IPA_ADDR_CHANGE_CODE_MACADDR;
-       if (l2entry->addr_lnid.lnid)
+       if (l2entry->addr_lnid.lnid < VLAN_N_VID)
                code |= IPA_ADDR_CHANGE_CODE_VLANID;
        qeth_bridge_emit_host_event(card, anev_reg_unreg, code,
                (struct net_if_token *)&l2entry->nit,