Lines Matching full:vid

73 	hash = jhash(&claim->vid, sizeof(claim->vid), hash);  in batadv_choose_claim()
92 hash = jhash(&gw->vid, sizeof(gw->vid), hash); in batadv_choose_backbone_gw()
98 * batadv_compare_backbone_gw() - compare address and vid of two backbone gws
115 if (gw1->vid != gw2->vid) in batadv_compare_backbone_gw()
122 * batadv_compare_claim() - compare address and vid of two claims
139 if (cl1->vid != cl2->vid) in batadv_compare_claim()
248 * @vid: the VLAN ID
254 unsigned short vid) in batadv_backbone_hash_find() argument
266 search_entry.vid = vid; in batadv_backbone_hash_find()
332 * @vid: the VLAN ID
336 unsigned short vid, int claimtype) in batadv_bla_send_claim() argument
386 "%s(): CLAIM %pM on vid %d\n", __func__, mac, in batadv_bla_send_claim()
387 batadv_print_vid(vid)); in batadv_bla_send_claim()
395 "%s(): UNCLAIM %pM on vid %d\n", __func__, mac, in batadv_bla_send_claim()
396 batadv_print_vid(vid)); in batadv_bla_send_claim()
404 "%s(): ANNOUNCE of %pM on vid %d\n", __func__, in batadv_bla_send_claim()
405 ethhdr->h_source, batadv_print_vid(vid)); in batadv_bla_send_claim()
415 "%s(): REQUEST of %pM to %pM on vid %d\n", __func__, in batadv_bla_send_claim()
417 batadv_print_vid(vid)); in batadv_bla_send_claim()
422 "%s(): LOOPDETECT of %pM to %pM on vid %d\n", in batadv_bla_send_claim()
424 batadv_print_vid(vid)); in batadv_bla_send_claim()
429 if (vid & BATADV_VLAN_HAS_TAG) { in batadv_bla_send_claim()
431 vid & VLAN_VID_MASK); in batadv_bla_send_claim()
470 batadv_print_vid(backbone_gw->vid)); in batadv_bla_loopdetect_report()
472 batadv_print_vid(backbone_gw->vid)); in batadv_bla_loopdetect_report()
485 * @vid: the VLAN ID
492 unsigned short vid, bool own_backbone) in batadv_bla_get_backbone_gw() argument
498 entry = batadv_backbone_hash_find(bat_priv, orig, vid); in batadv_bla_get_backbone_gw()
505 orig, batadv_print_vid(vid)); in batadv_bla_get_backbone_gw()
511 entry->vid = vid; in batadv_bla_get_backbone_gw()
537 batadv_tt_global_del_orig(bat_priv, orig_node, vid, in batadv_bla_get_backbone_gw()
558 * @vid: VLAN identifier
566 unsigned short vid) in batadv_bla_update_own_backbone_gw() argument
572 vid, true); in batadv_bla_update_own_backbone_gw()
584 * @vid: the vid where the request came on
591 unsigned short vid) in batadv_bla_answer_request() argument
605 vid); in batadv_bla_answer_request()
619 batadv_bla_send_claim(bat_priv, claim->addr, claim->vid, in batadv_bla_answer_request()
648 backbone_gw->vid, BATADV_CLAIM_TYPE_REQUEST); in batadv_bla_send_request()
674 batadv_bla_send_claim(bat_priv, mac, backbone_gw->vid, in batadv_bla_send_announce()
682 * @vid: the VLAN ID of the frame
686 const u8 *mac, const unsigned short vid, in batadv_bla_add_claim() argument
696 search_claim.vid = vid; in batadv_bla_add_claim()
707 claim->vid = vid; in batadv_bla_add_claim()
714 "%s(): adding new entry %pM, vid %d to hash ...\n", in batadv_bla_add_claim()
715 __func__, mac, batadv_print_vid(vid)); in batadv_bla_add_claim()
735 "%s(): changing ownership for %pM, vid %d to gw %pM\n", in batadv_bla_add_claim()
736 __func__, mac, batadv_print_vid(vid), in batadv_bla_add_claim()
792 * @vid: VLAN id for the claim to be removed
795 const u8 *mac, const unsigned short vid) in batadv_bla_del_claim() argument
802 search_claim.vid = vid; in batadv_bla_del_claim()
807 batadv_dbg(BATADV_DBG_BLA, bat_priv, "%s(): %pM, vid %d\n", __func__, in batadv_bla_del_claim()
808 mac, batadv_print_vid(vid)); in batadv_bla_del_claim()
831 * @vid: the VLAN ID of the frame
836 u8 *backbone_addr, unsigned short vid) in batadv_handle_announce() argument
844 backbone_gw = batadv_bla_get_backbone_gw(bat_priv, backbone_addr, vid, in batadv_handle_announce()
855 "%s(): ANNOUNCE vid %d (sent by %pM)... CRC = %#.4x\n", in batadv_handle_announce()
856 __func__, batadv_print_vid(vid), backbone_gw->orig, crc); in batadv_handle_announce()
866 batadv_print_vid(backbone_gw->vid), in batadv_handle_announce()
890 * @vid: the VLAN ID of the frame
897 unsigned short vid) in batadv_handle_request() argument
910 "%s(): REQUEST vid %d (sent by %pM)...\n", in batadv_handle_request()
911 __func__, batadv_print_vid(vid), ethhdr->h_source); in batadv_handle_request()
913 batadv_bla_answer_request(bat_priv, primary_if, vid); in batadv_handle_request()
923 * @vid: the VLAN ID of the frame
930 unsigned short vid) in batadv_handle_unclaim() argument
937 batadv_bla_send_claim(bat_priv, claim_addr, vid, in batadv_handle_unclaim()
940 backbone_gw = batadv_backbone_hash_find(bat_priv, backbone_addr, vid); in batadv_handle_unclaim()
947 "%s(): UNCLAIM %pM on vid %d (sent by %pM)...\n", __func__, in batadv_handle_unclaim()
948 claim_addr, batadv_print_vid(vid), backbone_gw->orig); in batadv_handle_unclaim()
950 batadv_bla_del_claim(bat_priv, claim_addr, vid); in batadv_handle_unclaim()
961 * @vid: the VLAN ID of the frame
968 unsigned short vid) in batadv_handle_claim() argument
974 backbone_gw = batadv_bla_get_backbone_gw(bat_priv, backbone_addr, vid, in batadv_handle_claim()
981 batadv_bla_add_claim(bat_priv, claim_addr, vid, backbone_gw); in batadv_handle_claim()
983 batadv_bla_send_claim(bat_priv, claim_addr, vid, in batadv_handle_claim()
1085 unsigned short vid; in batadv_bla_process_claim() local
1091 vid = batadv_get_vid(skb, 0); in batadv_bla_process_claim()
1096 if (vid & BATADV_VLAN_HAS_TAG) { in batadv_bla_process_claim()
1167 …"%s(): received a claim frame from another group. From: %pM on vid %d ...(hw_src %pM, hw_dst %pM)\… in batadv_bla_process_claim()
1168 __func__, ethhdr->h_source, batadv_print_vid(vid), in batadv_bla_process_claim()
1175 batadv_bla_update_own_backbone_gw(bat_priv, primary_if, vid); in batadv_bla_process_claim()
1181 ethhdr->h_source, vid)) in batadv_bla_process_claim()
1186 ethhdr->h_source, hw_src, vid)) in batadv_bla_process_claim()
1192 vid)) in batadv_bla_process_claim()
1197 vid)) in batadv_bla_process_claim()
1203 …"%s(): ERROR - this looks like a claim frame, but is useless. eth src %pM on vid %d ...(hw_src %pM… in batadv_bla_process_claim()
1204 __func__, ethhdr->h_source, batadv_print_vid(vid), hw_src, in batadv_bla_process_claim()
1307 "%s(): %pM, vid %d\n", __func__, in batadv_bla_purge_claims()
1308 claim->addr, claim->vid); in batadv_bla_purge_claims()
1312 claim->addr, claim->vid); in batadv_bla_purge_claims()
1390 batadv_dbg(BATADV_DBG_BLA, bat_priv, "Send loopdetect frame for vid %d\n", in batadv_bla_send_loopdetect()
1391 backbone_gw->vid); in batadv_bla_send_loopdetect()
1393 backbone_gw->vid, BATADV_CLAIM_TYPE_LOOPDETECT); in batadv_bla_send_loopdetect()
1721 * the VLAN identified by vid.
1724 * @vid: VLAN identifier
1726 * Return: true if orig is a backbone for this vid, false otherwise.
1729 unsigned short vid) in batadv_bla_is_backbone_gw_orig() argument
1748 backbone_gw->vid == vid) { in batadv_bla_is_backbone_gw_orig()
1772 unsigned short vid; in batadv_bla_is_backbone_gw() local
1777 /* first, find out the vid. */ in batadv_bla_is_backbone_gw()
1781 vid = batadv_get_vid(skb, hdr_size); in batadv_bla_is_backbone_gw()
1785 orig_node->orig, vid); in batadv_bla_is_backbone_gw()
1825 * @vid: the VLAN ID of the frame
1836 unsigned short vid) in batadv_bla_loopdetect_check() argument
1860 vid, true); in batadv_bla_loopdetect_check()
1879 * @vid: the VLAN ID of the frame
1892 unsigned short vid, int packet_type) in batadv_bla_rx() argument
1910 if (batadv_bla_loopdetect_check(bat_priv, skb, primary_if, vid)) in batadv_bla_rx()
1942 search_claim.vid = vid; in batadv_bla_rx()
1954 ethhdr->h_source, vid) ? in batadv_bla_rx()
1958 ethhdr->h_source, vid); in batadv_bla_rx()
1991 ethhdr->h_source, vid); in batadv_bla_rx()
1995 batadv_bla_update_own_backbone_gw(bat_priv, primary_if, vid); in batadv_bla_rx()
2015 * @vid: the VLAN ID of the frame
2029 unsigned short vid) in batadv_bla_tx() argument
2056 search_claim.vid = vid; in batadv_bla_tx()
2083 ethhdr->h_source, vid); in batadv_bla_tx()
2105 batadv_bla_update_own_backbone_gw(bat_priv, primary_if, vid); in batadv_bla_tx()
2150 " Client VID Originator [o] (CRC )\n"); in batadv_bla_claim_table_seq_print_text()
2165 claim->addr, batadv_print_vid(claim->vid), in batadv_bla_claim_table_seq_print_text()
2228 nla_put_u16(msg, BATADV_ATTR_BLA_VID, claim->vid) || in batadv_bla_claim_dump_entry()
2383 seq_puts(seq, " Originator VID last seen (CRC )\n"); in batadv_bla_backbone_table_seq_print_text()
2405 batadv_print_vid(backbone_gw->vid), secs, in batadv_bla_backbone_table_seq_print_text()
2467 nla_put_u16(msg, BATADV_ATTR_BLA_VID, backbone_gw->vid) || in batadv_bla_backbone_dump_entry()
2595 * @vid: the VLAN ID
2603 u8 *addr, unsigned short vid) in batadv_bla_check_claim() argument
2619 search_claim.vid = vid; in batadv_bla_check_claim()