Lines Matching refs:vid
92 __be16 proto, u16 vid);
175 * @vid: vlan id, if vid < 0 set/unset address for real device
179 int vid, int add)
185 if (vid < 0) {
187 vid = cpsw->slaves[priv->emac_port].port_vlan;
189 vid = 0;
193 flags = vid ? ALE_VLAN : 0;
196 ret = cpsw_ale_add_mcast(cpsw->ale, addr, mask, flags, vid, 0);
198 ret = cpsw_ale_del_mcast(cpsw->ale, addr, 0, flags, vid);
203 static int cpsw_update_vlan_mc(struct net_device *vdev, int vid, void *ctx)
225 cpsw_set_mc(sync_ctx->ndev, sync_ctx->addr, vid, 0);
230 ret = cpsw_set_mc(sync_ctx->ndev, sync_ctx->addr, vid, 1);
268 static int cpsw_purge_vlan_mc(struct net_device *vdev, int vid, void *ctx)
289 cpsw_set_mc(sync_ctx->ndev, sync_ctx->addr, vid, 0);
730 static int cpsw_restore_vlans(struct net_device *vdev, int vid, void *arg)
737 cpsw_ndo_vlan_rx_add_vid(priv->ndev, 0, vid);
967 u16 vid = 0;
978 vid = cpsw->slaves[priv->emac_port].port_vlan;
983 flags, vid);
985 flags, vid);
997 unsigned short vid)
1021 ret = cpsw_ale_add_vlan(cpsw->ale, vid, port_mask, 0, port_mask,
1027 HOST_PORT_NUM, ALE_VLAN, vid);
1032 mcast_mask, ALE_VLAN, vid, 0);
1039 HOST_PORT_NUM, ALE_VLAN, vid);
1041 cpsw_ale_del_vlan(cpsw->ale, vid, 0);
1046 __be16 proto, u16 vid)
1052 if (vid == cpsw->data.default_vlan)
1067 if (vid == cpsw->slaves[i].port_vlan) {
1074 dev_info(priv->dev, "Adding vlanid %d to vlan filter\n", vid);
1075 ret = cpsw_add_vlan_ale_entry(priv, vid);
1082 __be16 proto, u16 vid)
1088 if (vid == cpsw->data.default_vlan)
1099 if (vid == cpsw->slaves[i].port_vlan)
1104 dev_info(priv->dev, "removing vlanid %d from vlan filter\n", vid);
1105 ret = cpsw_ale_del_vlan(cpsw->ale, vid, 0);
1107 HOST_PORT_NUM, ALE_VLAN, vid);
1109 0, ALE_VLAN, vid);
1110 ret |= cpsw_ale_flush_multicast(cpsw->ale, ALE_PORT_HOST, vid);