Lines Matching defs:vid

144 		batadv_tt_local_remove(bat_priv, old_addr, vlan->vid,
146 batadv_tt_local_add(dev, addr->sa_data, vlan->vid,
198 unsigned short vid;
213 vid = batadv_get_vid(skb, 0);
240 if (batadv_bla_tx(bat_priv, skb, vid))
250 vid, skb->skb_iif,
257 batadv_dat_snoop_outgoing_dhcp_ack(bat_priv, skb, proto, vid);
304 forw_mode = batadv_mcast_forw_mode(bat_priv, skb, vid,
365 ret = batadv_send_skb_via_gw(bat_priv, skb, vid);
367 ret = batadv_mcast_forw_send(bat_priv, skb, vid,
379 vid);
423 unsigned short vid;
440 vid = batadv_get_vid(skb, 0);
470 if (batadv_bla_rx(bat_priv, skb, vid, packet_type))
475 ethhdr->h_source, vid);
481 if (batadv_vlan_ap_isola_get(bat_priv, vid) &&
483 vid)) {
491 ethhdr->h_dest, vid)) {
523 * batadv_softif_vlan_get() - get the vlan object for a specific vid
525 * @vid: the identifier of the vlan object to retrieve
527 * Return: the private data of the vlan matching the vid passed as argument or
531 unsigned short vid)
537 if (vlan_tmp->vid != vid)
554 * @vid: the VLAN identifier
558 int batadv_softif_create_vlan(struct batadv_priv *bat_priv, unsigned short vid)
564 vlan = batadv_softif_vlan_get(bat_priv, vid);
578 vlan->vid = vid;
591 bat_priv->soft_iface->dev_addr, vid,
612 vlan->vid, "vlan interface destroyed", false);
621 * @vid: identifier of the new vlan
629 unsigned short vid)
640 vid |= BATADV_VLAN_HAS_TAG;
648 vlan = batadv_softif_vlan_get(bat_priv, vid);
650 return batadv_softif_create_vlan(bat_priv, vid);
657 bat_priv->soft_iface->dev_addr, vid,
667 * @vid: identifier of the deleted vlan
669 * Destroy all the internal structures used to handle the vlan identified by vid
676 unsigned short vid)
687 vlan = batadv_softif_vlan_get(bat_priv, vid | BATADV_VLAN_HAS_TAG);