Lines Matching refs:vid

147 		batadv_tt_local_remove(bat_priv, old_addr, vlan->vid,
149 batadv_tt_local_add(dev, addr->sa_data, vlan->vid,
201 unsigned short vid;
217 vid = batadv_get_vid(skb, 0);
244 if (batadv_bla_tx(bat_priv, skb, vid))
254 vid, skb->skb_iif,
261 batadv_dat_snoop_outgoing_dhcp_ack(bat_priv, skb, proto, vid);
370 ret = batadv_send_skb_via_gw(bat_priv, skb, vid);
372 ret = batadv_mcast_forw_send_orig(bat_priv, skb, vid,
375 ret = batadv_mcast_forw_send(bat_priv, skb, vid,
385 vid);
432 unsigned short vid;
449 vid = batadv_get_vid(skb, 0);
479 if (batadv_bla_rx(bat_priv, skb, vid, packet_type))
484 ethhdr->h_source, vid);
490 if (batadv_vlan_ap_isola_get(bat_priv, vid) &&
492 vid)) {
500 ethhdr->h_dest, vid)) {
532 * batadv_softif_vlan_get() - get the vlan object for a specific vid
534 * @vid: the identifier of the vlan object to retrieve
536 * Return: the private data of the vlan matching the vid passed as argument or
540 unsigned short vid)
546 if (vlan_tmp->vid != vid)
563 * @vid: the VLAN identifier
567 int batadv_softif_create_vlan(struct batadv_priv *bat_priv, unsigned short vid)
574 vlan = batadv_softif_vlan_get(bat_priv, vid);
588 vlan->vid = vid;
614 bat_priv->soft_iface->dev_addr, vid,
635 vlan->vid, "vlan interface destroyed", false);
645 * @vid: identifier of the new vlan
653 unsigned short vid)
665 vid |= BATADV_VLAN_HAS_TAG;
673 vlan = batadv_softif_vlan_get(bat_priv, vid);
675 return batadv_softif_create_vlan(bat_priv, vid);
693 bat_priv->soft_iface->dev_addr, vid,
703 * @vid: identifier of the deleted vlan
705 * Destroy all the internal structures used to handle the vlan identified by vid
712 unsigned short vid)
723 vlan = batadv_softif_vlan_get(bat_priv, vid | BATADV_VLAN_HAS_TAG);