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);
364 ret = batadv_send_skb_via_gw(bat_priv, skb, vid);
366 ret = batadv_mcast_forw_send(bat_priv, skb, vid,
376 vid);
420 unsigned short vid;
437 vid = batadv_get_vid(skb, 0);
467 if (batadv_bla_rx(bat_priv, skb, vid, packet_type))
472 ethhdr->h_source, vid);
478 if (batadv_vlan_ap_isola_get(bat_priv, vid) &&
480 vid)) {
488 ethhdr->h_dest, vid)) {
520 * batadv_softif_vlan_get() - get the vlan object for a specific vid
522 * @vid: the identifier of the vlan object to retrieve
524 * Return: the private data of the vlan matching the vid passed as argument or
528 unsigned short vid)
534 if (vlan_tmp->vid != vid)
551 * @vid: the VLAN identifier
555 int batadv_softif_create_vlan(struct batadv_priv *bat_priv, unsigned short vid)
561 vlan = batadv_softif_vlan_get(bat_priv, vid);
575 vlan->vid = vid;
588 bat_priv->soft_iface->dev_addr, vid,
609 vlan->vid, "vlan interface destroyed", false);
618 * @vid: identifier of the new vlan
626 unsigned short vid)
637 vid |= BATADV_VLAN_HAS_TAG;
645 vlan = batadv_softif_vlan_get(bat_priv, vid);
647 return batadv_softif_create_vlan(bat_priv, vid);
654 bat_priv->soft_iface->dev_addr, vid,
664 * @vid: identifier of the deleted vlan
666 * Destroy all the internal structures used to handle the vlan identified by vid
673 unsigned short vid)
684 vlan = batadv_softif_vlan_get(bat_priv, vid | BATADV_VLAN_HAS_TAG);