Lines Matching refs:vid

36 				 unsigned short vid,
44 unsigned short vid, const char *message,
71 hash = batadv_hash_bytes(hash, &tt->vid, sizeof(tt->vid));
84 * @vid: VLAN identifier
91 unsigned short vid)
101 to_search.vid = vid;
111 if (tt->vid != vid)
129 * @vid: VLAN identifier
136 unsigned short vid)
142 vid);
154 * @vid: VLAN identifier
161 unsigned short vid)
167 vid);
200 * @vid: VLAN identifier
206 const uint8_t *addr, unsigned short vid)
211 tt_global_entry = batadv_tt_global_hash_find(bat_priv, addr, vid);
237 * by vid
239 * @vid: the VLAN identifier of the sub-table to change
243 unsigned short vid, int v)
247 vlan = batadv_softif_vlan_get(bat_priv, vid);
258 * vid
260 * @vid: the VLAN identifier
263 unsigned short vid)
265 batadv_tt_local_size_mod(bat_priv, vid, 1);
270 * vid
272 * @vid: the VLAN identifier
275 unsigned short vid)
277 batadv_tt_local_size_mod(bat_priv, vid, -1);
282 * identified by vid
284 * @vid: the VLAN identifier
288 unsigned short vid, int v)
292 vlan = batadv_orig_node_vlan_new(orig_node, vid);
308 * given vid
310 * @vid: the vlan identifier
313 unsigned short vid)
315 batadv_tt_global_size_mod(orig_node, vid, 1);
320 * given vid
322 * @vid: the vlan identifier
325 unsigned short vid)
327 batadv_tt_global_size_mod(orig_node, vid, -1);
363 tt_change_node->change.vid = htons(common->vid);
486 "Deleting global tt entry %pM (vid: %d): %s\n",
488 BATADV_PRINT_VID(tt_global->common.vid), message);
500 * @vid: VLAN identifier
509 unsigned short vid, int ifindex, uint32_t mark)
526 tt_local = batadv_tt_local_hash_find(bat_priv, addr, vid);
529 tt_global = batadv_tt_global_hash_find(bat_priv, addr, vid);
535 "Re-adding pending client %pM (vid: %d)\n",
536 addr, BATADV_PRINT_VID(vid));
548 "Roaming client %pM (vid: %d) came back to its original location\n",
549 addr, BATADV_PRINT_VID(vid));
577 vlan = batadv_softif_vlan_get(bat_priv, vid);
580 "Creating new local tt entry: %pM (vid: %d, ttvn: %d)\n",
581 addr, BATADV_PRINT_VID(vid),
590 tt_local->common.vid = vid;
628 tt_global->common.vid,
740 tt_vlan->vid = htons(vlan->vid);
812 tt_vlan->vid = htons(vlan->vid);
911 unsigned short vid;
938 vid = tt_common_entry->vid;
946 vlan = batadv_softif_vlan_get(bat_priv, vid);
949 BATADV_PRINT_VID(vid));
956 BATADV_PRINT_VID(tt_common_entry->vid),
996 "Local tt entry (%pM, vid: %d) pending to be removed: %s\n",
998 BATADV_PRINT_VID(tt_local_entry->common.vid), message);
1005 * @vid: VLAN identifier
1012 const uint8_t *addr, unsigned short vid,
1019 tt_local_entry = batadv_tt_local_hash_find(bat_priv, addr, vid);
1049 vlan = batadv_softif_vlan_get(bat_priv, vid);
1149 tt_common_entry->vid);
1263 batadv_tt_global_size_inc(orig_node, tt_global->common.vid);
1284 * @vid: VLAN identifier
1301 unsigned short vid, uint16_t flags,
1312 if (batadv_bla_is_backbone_gw_orig(bat_priv, orig_node->orig, vid))
1315 tt_global_entry = batadv_tt_global_hash_find(bat_priv, tt_addr, vid);
1316 tt_local_entry = batadv_tt_local_hash_find(bat_priv, tt_addr, vid);
1333 common->vid = vid;
1411 "Creating new global tt entry: %pM (vid: %d, via %pM)\n",
1412 common->addr, BATADV_PRINT_VID(common->vid),
1424 local_flags = batadv_tt_local_remove(bat_priv, tt_addr, vid,
1515 tt_common_entry->vid);
1519 BATADV_PRINT_VID(tt_common_entry->vid),
1528 BATADV_PRINT_VID(tt_global_entry->common.vid),
1547 tt_common_entry->vid);
1551 BATADV_PRINT_VID(tt_common_entry->vid),
1560 BATADV_PRINT_VID(tt_global_entry->common.vid),
1626 tt_global_entry->common.vid);
1666 unsigned short vid;
1672 vid = tt_global_entry->common.vid;
1674 "Deleting %pM from global tt entry %pM (vid: %d): %s\n",
1677 BATADV_PRINT_VID(vid), message);
1730 * @vid: VLAN identifier
1737 const unsigned char *addr, unsigned short vid,
1743 tt_global_entry = batadv_tt_global_hash_find(bat_priv, addr, vid);
1773 vid);
1793 * given originator matching the provided vid
1812 unsigned short vid;
1825 if (match_vid >= 0 && tt_common_entry->vid != match_vid)
1836 vid = tt_global->common.vid;
1838 "Deleting global tt entry %pM (vid: %d): %s\n",
1840 BATADV_PRINT_VID(vid), message);
1898 "Deleting global tt entry %pM (vid: %d): %s\n",
1900 BATADV_PRINT_VID(tt_global->common.vid),
1970 * @vid: VLAN identifier
1982 unsigned short vid)
1989 if (src && batadv_vlan_ap_isola_get(bat_priv, vid)) {
1990 tt_local_entry = batadv_tt_local_hash_find(bat_priv, src, vid);
1996 tt_global_entry = batadv_tt_global_hash_find(bat_priv, addr, vid);
2030 * @vid: VLAN identifier for which the CRC32 has to be computed
2051 unsigned short vid)
2070 * VLAN identified by the vid passed as parameter
2072 if (tt_common->vid != vid)
2099 tmp_vid = htons(tt_common->vid);
2119 * @vid: VLAN identifier for which the CRC32 has to be computed
2127 unsigned short vid)
2142 * VLAN identified by vid
2144 if (tt_common->vid != vid)
2156 tmp_vid = htons(tt_common->vid);
2326 tt_change->vid = htons(tt_common_entry->vid);
2365 ntohs(tt_vlan_tmp->vid)))
2369 ntohs(tt_vlan_tmp->vid));
2394 vlan->tt.crc = batadv_tt_local_crc(bat_priv, vlan->vid);
2417 vlan->vid))
2420 crc = batadv_tt_global_crc(bat_priv, orig_node, vlan->vid);
2474 tt_vlan_req->vid = tt_vlan->vid;
2790 ntohs((tt_change + i)->vid),
2796 ntohs((tt_change + i)->vid),
2858 * @vid: VLAN identifier
2863 unsigned short vid)
2868 tt_local_entry = batadv_tt_local_hash_find(bat_priv, addr, vid);
3030 * @vid: VLAN identifier
3039 unsigned short vid,
3056 "Sending ROAMING_ADV to %pM (client %pM, vid: %d)\n",
3057 orig_node->orig, client, BATADV_PRINT_VID(vid));
3062 tvlv_roam.vid = htons(vid);
3149 tt_common_entry->vid);
3181 "Deleting local tt entry (%pM, vid: %d): pending\n",
3183 BATADV_PRINT_VID(tt_common->vid));
3185 batadv_tt_local_size_dec(bat_priv, tt_common->vid);
3192 vlan = batadv_softif_vlan_get(bat_priv, tt_common->vid);
3249 uint8_t *dst, unsigned short vid)
3256 vlan = batadv_softif_vlan_get(bat_priv, vid);
3260 tt_local_entry = batadv_tt_local_hash_find(bat_priv, dst, vid);
3264 tt_global_entry = batadv_tt_global_hash_find(bat_priv, src, vid);
3372 * @vid: VLAN identifier
3379 uint8_t *addr, unsigned short vid)
3384 tt_global_entry = batadv_tt_global_hash_find(bat_priv, addr, vid);
3398 * @vid: VLAN identifier
3405 uint8_t *addr, unsigned short vid)
3410 tt_local_entry = batadv_tt_local_hash_find(bat_priv, addr, vid);
3423 unsigned short vid)
3427 if (!batadv_tt_global_add(bat_priv, orig_node, addr, vid,
3433 "Added temporary global client (addr: %pM, vid: %d, orig: %pM)\n",
3434 addr, BATADV_PRINT_VID(vid), orig_node->orig);
3643 ntohs(roaming_adv->vid), BATADV_TT_CLIENT_ROAM,
3692 * @vid: the identifier of the VLAN where this client is connected
3698 const uint8_t *addr, unsigned short vid)
3703 tt = batadv_tt_global_hash_find(bat_priv, addr, vid);