| @@ -394,7 +394,7 @@ static void batadv_bla_send_claim(struct batadv_priv *bat_priv, u8 *mac, · 393 unmodified lines |
| 394 | */ | 394 | */ |
| 395 | ether_addr_copy(ethhdr->h_source, mac); | 395 | ether_addr_copy(ethhdr->h_source, mac); |
| 396 | batadv_dbg(BATADV_DBG_BLA, bat_priv, | 396 | batadv_dbg(BATADV_DBG_BLA, bat_priv, |
| 397 | "bla_send_claim(): CLAIM %pM on vid %d\n", mac, | 397 | "%s(): CLAIM %pM on vid %d\n", __func__, mac, |
| 398 | batadv_print_vid(vid)); | 398 | batadv_print_vid(vid)); |
| 399 | break; | 399 | break; |
| 400 | case BATADV_CLAIM_TYPE_UNCLAIM: | 400 | case BATADV_CLAIM_TYPE_UNCLAIM: |
| @@ -403,7 +403,7 @@ static void batadv_bla_send_claim(struct batadv_priv *bat_priv, u8 *mac, · 2 unmodified lines |
| 403 | */ | 403 | */ |
| 404 | ether_addr_copy(hw_src, mac); | 404 | ether_addr_copy(hw_src, mac); |
| 405 | batadv_dbg(BATADV_DBG_BLA, bat_priv, | 405 | batadv_dbg(BATADV_DBG_BLA, bat_priv, |
| 406 | "bla_send_claim(): UNCLAIM %pM on vid %d\n", mac, | 406 | "%s(): UNCLAIM %pM on vid %d\n", __func__, mac, |
| 407 | batadv_print_vid(vid)); | 407 | batadv_print_vid(vid)); |
| 408 | break; | 408 | break; |
| 409 | case BATADV_CLAIM_TYPE_ANNOUNCE: | 409 | case BATADV_CLAIM_TYPE_ANNOUNCE: |
| @@ -412,7 +412,7 @@ static void batadv_bla_send_claim(struct batadv_priv *bat_priv, u8 *mac, · 2 unmodified lines |
| 412 | */ | 412 | */ |
| 413 | ether_addr_copy(hw_src, mac); | 413 | ether_addr_copy(hw_src, mac); |
| 414 | batadv_dbg(BATADV_DBG_BLA, bat_priv, | 414 | batadv_dbg(BATADV_DBG_BLA, bat_priv, |
| 415 | "bla_send_claim(): ANNOUNCE of %pM on vid %d\n", | 415 | "%s(): ANNOUNCE of %pM on vid %d\n", __func__, |
| 416 | ethhdr->h_source, batadv_print_vid(vid)); | 416 | ethhdr->h_source, batadv_print_vid(vid)); |
| 417 | break; | 417 | break; |
| 418 | case BATADV_CLAIM_TYPE_REQUEST: | 418 | case BATADV_CLAIM_TYPE_REQUEST: |
| @@ -423,15 +423,15 @@ static void batadv_bla_send_claim(struct batadv_priv *bat_priv, u8 *mac, · 4 unmodified lines |
| 423 | ether_addr_copy(hw_src, mac); | 423 | ether_addr_copy(hw_src, mac); |
| 424 | ether_addr_copy(ethhdr->h_dest, mac); | 424 | ether_addr_copy(ethhdr->h_dest, mac); |
| 425 | batadv_dbg(BATADV_DBG_BLA, bat_priv, | 425 | batadv_dbg(BATADV_DBG_BLA, bat_priv, |
| 426 | "bla_send_claim(): REQUEST of %pM to %pM on vid %d\n", | 426 | "%s(): REQUEST of %pM to %pM on vid %d\n", __func__, |
| 427 | ethhdr->h_source, ethhdr->h_dest, | 427 | ethhdr->h_source, ethhdr->h_dest, |
| 428 | batadv_print_vid(vid)); | 428 | batadv_print_vid(vid)); |
| 429 | break; | 429 | break; |
| 430 | case BATADV_CLAIM_TYPE_LOOPDETECT: | 430 | case BATADV_CLAIM_TYPE_LOOPDETECT: |
| 431 | ether_addr_copy(ethhdr->h_source, mac); | 431 | ether_addr_copy(ethhdr->h_source, mac); |
| 432 | batadv_dbg(BATADV_DBG_BLA, bat_priv, | 432 | batadv_dbg(BATADV_DBG_BLA, bat_priv, |
| 433 | "bla_send_claim(): LOOPDETECT of %pM to %pM on vid %d\n", | 433 | "%s(): LOOPDETECT of %pM to %pM on vid %d\n", |
| 434 | ethhdr->h_source, ethhdr->h_dest, | 434 | __func__, ethhdr->h_source, ethhdr->h_dest, |
| 435 | batadv_print_vid(vid)); | 435 | batadv_print_vid(vid)); |
| 436 | | 436 | |
| 437 | break; | 437 | break; |
| @@ -509,7 +509,7 @@ batadv_bla_get_backbone_gw(struct batadv_priv *bat_priv, u8 *orig, · 71 unmodified lines |
| 509 | return entry; | 509 | return entry; |
| 510 | | 510 | |
| 511 | batadv_dbg(BATADV_DBG_BLA, bat_priv, | 511 | batadv_dbg(BATADV_DBG_BLA, bat_priv, |
| 512 | "bla_get_backbone_gw(): not found (%pM, %d), creating new entry\n", | 512 | "%s(): not found (%pM, %d), creating new entry\n", __func__, |
| 513 | orig, batadv_print_vid(vid)); | 513 | orig, batadv_print_vid(vid)); |
| 514 | | 514 | |
| 515 | entry = kzalloc(sizeof(*entry), GFP_ATOMIC); | 515 | entry = kzalloc(sizeof(*entry), GFP_ATOMIC); |
| @@ -605,7 +605,8 @@ static void batadv_bla_answer_request(struct batadv_priv *bat_priv, · 89 unmodified lines |
| 605 | int i; | 605 | int i; |
| 606 | | 606 | |
| 607 | batadv_dbg(BATADV_DBG_BLA, bat_priv, | 607 | batadv_dbg(BATADV_DBG_BLA, bat_priv, |
| 608 | "bla_answer_request(): received a claim request, send all of our own claims again\n"); | 608 | "%s(): received a claim request, send all of our own claims again\n", |
| | 609 | __func__); |
| 609 | | 610 | |
| 610 | backbone_gw = batadv_backbone_hash_find(bat_priv, | 611 | backbone_gw = batadv_backbone_hash_find(bat_priv, |
| 611 | primary_if->net_dev->dev_addr, | 612 | primary_if->net_dev->dev_addr, |
| @@ -718,8 +719,8 @@ static void batadv_bla_add_claim(struct batadv_priv *bat_priv, · 106 unmodified lines |
| 718 | kref_init(&claim->refcount); | 719 | kref_init(&claim->refcount); |
| 719 | | 720 | |
| 720 | batadv_dbg(BATADV_DBG_BLA, bat_priv, | 721 | batadv_dbg(BATADV_DBG_BLA, bat_priv, |
| 721 | "bla_add_claim(): adding new entry %pM, vid %d to hash ...\n", | 722 | "%s(): adding new entry %pM, vid %d to hash ...\n", |
| 722 | mac, batadv_print_vid(vid)); | 723 | __func__, mac, batadv_print_vid(vid)); |
| 723 | | 724 | |
| 724 | kref_get(&claim->refcount); | 725 | kref_get(&claim->refcount); |
| 725 | hash_added = batadv_hash_add(bat_priv->bla.claim_hash, | 726 | hash_added = batadv_hash_add(bat_priv->bla.claim_hash, |
| @@ -739,8 +740,9 @@ static void batadv_bla_add_claim(struct batadv_priv *bat_priv, · 13 unmodified lines |
| 739 | goto claim_free_ref; | 740 | goto claim_free_ref; |
| 740 | | 741 | |
| 741 | batadv_dbg(BATADV_DBG_BLA, bat_priv, | 742 | batadv_dbg(BATADV_DBG_BLA, bat_priv, |
| 742 | "bla_add_claim(): changing ownership for %pM, vid %d to gw %pM\n", | 743 | "%s(): changing ownership for %pM, vid %d to gw %pM\n", |
| 743 | mac, batadv_print_vid(vid), backbone_gw->orig); | 744 | __func__, mac, batadv_print_vid(vid), |
| | 745 | backbone_gw->orig); |
| 744 | | 746 | |
| 745 | remove_crc = true; | 747 | remove_crc = true; |
| 746 | } | 748 | } |
| @@ -808,7 +810,7 @@ static void batadv_bla_del_claim(struct batadv_priv *bat_priv, · 61 unmodified lines |
| 808 | if (!claim) | 810 | if (!claim) |
| 809 | return; | 811 | return; |
| 810 | | 812 | |
| 811 | batadv_dbg(BATADV_DBG_BLA, bat_priv, "bla_del_claim(): %pM, vid %d\n", | 813 | batadv_dbg(BATADV_DBG_BLA, bat_priv, "%s(): %pM, vid %d\n", __func__, |
| 812 | mac, batadv_print_vid(vid)); | 814 | mac, batadv_print_vid(vid)); |
| 813 | | 815 | |
| 814 | batadv_hash_remove(bat_priv->bla.claim_hash, batadv_compare_claim, | 816 | batadv_hash_remove(bat_priv->bla.claim_hash, batadv_compare_claim, |
| @@ -848,8 +850,8 @@ static bool batadv_handle_announce(struct batadv_priv *bat_priv, u8 *an_addr, · 33 unmodified lines |
| 848 | crc = ntohs(*((__be16 *)(&an_addr[4]))); | 850 | crc = ntohs(*((__be16 *)(&an_addr[4]))); |
| 849 | | 851 | |
| 850 | batadv_dbg(BATADV_DBG_BLA, bat_priv, | 852 | batadv_dbg(BATADV_DBG_BLA, bat_priv, |
| 851 | "handle_announce(): ANNOUNCE vid %d (sent by %pM)... CRC = %#.4x\n", | 853 | "%s(): ANNOUNCE vid %d (sent by %pM)... CRC = %#.4x\n", |
| 852 | batadv_print_vid(vid), backbone_gw->orig, crc); | 854 | __func__, batadv_print_vid(vid), backbone_gw->orig, crc); |
| 853 | | 855 | |
| 854 | spin_lock_bh(&backbone_gw->crc_lock); | 856 | spin_lock_bh(&backbone_gw->crc_lock); |
| 855 | backbone_crc = backbone_gw->crc; | 857 | backbone_crc = backbone_gw->crc; |
| @@ -857,8 +859,8 @@ static bool batadv_handle_announce(struct batadv_priv *bat_priv, u8 *an_addr, · 1 unmodified line |
| 857 | | 859 | |
| 858 | if (backbone_crc != crc) { | 860 | if (backbone_crc != crc) { |
| 859 | batadv_dbg(BATADV_DBG_BLA, backbone_gw->bat_priv, | 861 | batadv_dbg(BATADV_DBG_BLA, backbone_gw->bat_priv, |
| 860 | "handle_announce(): CRC FAILED for %pM/%d (my = %#.4x, sent = %#.4x)\n", | 862 | "%s(): CRC FAILED for %pM/%d (my = %#.4x, sent = %#.4x)\n", |
| 861 | backbone_gw->orig, | 863 | __func__, backbone_gw->orig, |
| 862 | batadv_print_vid(backbone_gw->vid), | 864 | batadv_print_vid(backbone_gw->vid), |
| 863 | backbone_crc, crc); | 865 | backbone_crc, crc); |
| 864 | | 866 | |
| @@ -903,8 +905,8 @@ static bool batadv_handle_request(struct batadv_priv *bat_priv, · 38 unmodified lines |
| 903 | return true; | 905 | return true; |
| 904 | | 906 | |
| 905 | batadv_dbg(BATADV_DBG_BLA, bat_priv, | 907 | batadv_dbg(BATADV_DBG_BLA, bat_priv, |
| 906 | "handle_request(): REQUEST vid %d (sent by %pM)...\n", | 908 | "%s(): REQUEST vid %d (sent by %pM)...\n", |
| 907 | batadv_print_vid(vid), ethhdr->h_source); | 909 | __func__, batadv_print_vid(vid), ethhdr->h_source); |
| 908 | | 910 | |
| 909 | batadv_bla_answer_request(bat_priv, primary_if, vid); | 911 | batadv_bla_answer_request(bat_priv, primary_if, vid); |
| 910 | return true; | 912 | return true; |
| @@ -940,7 +942,7 @@ static bool batadv_handle_unclaim(struct batadv_priv *bat_priv, · 29 unmodified lines |
| 940 | | 942 | |
| 941 | /* this must be an UNCLAIM frame */ | 943 | /* this must be an UNCLAIM frame */ |
| 942 | batadv_dbg(BATADV_DBG_BLA, bat_priv, | 944 | batadv_dbg(BATADV_DBG_BLA, bat_priv, |
| 943 | "handle_unclaim(): UNCLAIM %pM on vid %d (sent by %pM)...\n", | 945 | "%s(): UNCLAIM %pM on vid %d (sent by %pM)...\n", __func__, |
| 944 | claim_addr, batadv_print_vid(vid), backbone_gw->orig); | 946 | claim_addr, batadv_print_vid(vid), backbone_gw->orig); |
| 945 | | 947 | |
| 946 | batadv_bla_del_claim(bat_priv, claim_addr, vid); | 948 | batadv_bla_del_claim(bat_priv, claim_addr, vid); |
| @@ -1160,9 +1162,9 @@ static bool batadv_bla_process_claim(struct batadv_priv *bat_priv, · 213 unmodified lines |
| 1160 | ethhdr); | 1162 | ethhdr); |
| 1161 | if (ret == 1) | 1163 | if (ret == 1) |
| 1162 | batadv_dbg(BATADV_DBG_BLA, bat_priv, | 1164 | batadv_dbg(BATADV_DBG_BLA, bat_priv, |
| 1163 | "bla_process_claim(): received a claim frame from another group. From: %pM on vid %d ...(hw_src %pM, hw_dst %pM)\n", | 1165 | "%s(): received a claim frame from another group. From: %pM on vid %d ...(hw_src %pM, hw_dst %pM)\n", |
| 1164 | ethhdr->h_source, batadv_print_vid(vid), hw_src, | 1166 | __func__, ethhdr->h_source, batadv_print_vid(vid), |
| 1165 | hw_dst); | 1167 | hw_src, hw_dst); |
| 1166 | | 1168 | |
| 1167 | if (ret < 2) | 1169 | if (ret < 2) |
| 1168 | return !!ret; | 1170 | return !!ret; |
| @@ -1196,8 +1198,9 @@ static bool batadv_bla_process_claim(struct batadv_priv *bat_priv, · 27 unmodified lines |
| 1196 | } | 1198 | } |
| 1197 | | 1199 | |
| 1198 | batadv_dbg(BATADV_DBG_BLA, bat_priv, | 1200 | batadv_dbg(BATADV_DBG_BLA, bat_priv, |
| 1199 | "bla_process_claim(): ERROR - this looks like a claim frame, but is useless. eth src %pM on vid %d ...(hw_src %pM, hw_dst %pM)\n", | 1201 | "%s(): ERROR - this looks like a claim frame, but is useless. eth src %pM on vid %d ...(hw_src %pM, hw_dst %pM)\n", |
| 1200 | ethhdr->h_source, batadv_print_vid(vid), hw_src, hw_dst); | 1202 | __func__, ethhdr->h_source, batadv_print_vid(vid), hw_src, |
| | 1203 | hw_dst); |
| 1201 | return true; | 1204 | return true; |
| 1202 | } | 1205 | } |
| 1203 | | 1206 | |
| @@ -1237,8 +1240,8 @@ static void batadv_bla_purge_backbone_gw(struct batadv_priv *bat_priv, int now) · 33 unmodified lines |
| 1237 | continue; | 1240 | continue; |
| 1238 | | 1241 | |
| 1239 | batadv_dbg(BATADV_DBG_BLA, backbone_gw->bat_priv, | 1242 | batadv_dbg(BATADV_DBG_BLA, backbone_gw->bat_priv, |
| 1240 | "bla_purge_backbone_gw(): backbone gw %pM timed out\n", | 1243 | "%s(): backbone gw %pM timed out\n", |
| 1241 | backbone_gw->orig); | 1244 | __func__, backbone_gw->orig); |
| 1242 | | 1245 | |
| 1243 | purge_now: | 1246 | purge_now: |
| 1244 | /* don't wait for the pending request anymore */ | 1247 | /* don't wait for the pending request anymore */ |
| @@ -1295,11 +1298,11 @@ static void batadv_bla_purge_claims(struct batadv_priv *bat_priv, · 50 unmodified lines |
| 1295 | goto skip; | 1298 | goto skip; |
| 1296 | | 1299 | |
| 1297 | batadv_dbg(BATADV_DBG_BLA, bat_priv, | 1300 | batadv_dbg(BATADV_DBG_BLA, bat_priv, |
| 1298 | "bla_purge_claims(): timed out.\n"); | 1301 | "%s(): timed out.\n", __func__); |
| 1299 | | 1302 | |
| 1300 | purge_now: | 1303 | purge_now: |
| 1301 | batadv_dbg(BATADV_DBG_BLA, bat_priv, | 1304 | batadv_dbg(BATADV_DBG_BLA, bat_priv, |
| 1302 | "bla_purge_claims(): %pM, vid %d\n", | 1305 | "%s(): %pM, vid %d\n", __func__, |
| 1303 | claim->addr, claim->vid); | 1306 | claim->addr, claim->vid); |
| 1304 | | 1307 | |
| 1305 | batadv_handle_unclaim(bat_priv, primary_if, | 1308 | batadv_handle_unclaim(bat_priv, primary_if, |
| @@ -1851,8 +1854,8 @@ bool batadv_bla_rx(struct batadv_priv *bat_priv, struct sk_buff *skb, · 545 unmodified lines |
| 1851 | */ | 1854 | */ |
| 1852 | | 1855 | |
| 1853 | batadv_dbg(BATADV_DBG_BLA, bat_priv, | 1856 | batadv_dbg(BATADV_DBG_BLA, bat_priv, |
| 1854 | "bla_rx(): Unclaimed MAC %pM found. Claim it. Local: %s\n", | 1857 | "%s(): Unclaimed MAC %pM found. Claim it. Local: %s\n", |
| 1855 | ethhdr->h_source, | 1858 | __func__, ethhdr->h_source, |
| 1856 | batadv_is_my_client(bat_priv, | 1859 | batadv_is_my_client(bat_priv, |
| 1857 | ethhdr->h_source, vid) ? | 1860 | ethhdr->h_source, vid) ? |
| 1858 | "yes" : "no"); | 1861 | "yes" : "no"); |
| @@ -1978,15 +1981,15 @@ bool batadv_bla_tx(struct batadv_priv *bat_priv, struct sk_buff *skb, · 119 unmodified lines |
| 1978 | * older than 100 ms to make sure we really | 1981 | * older than 100 ms to make sure we really |
| 1979 | * have a roaming client here. | 1982 | * have a roaming client here. |
| 1980 | */ | 1983 | */ |
| 1981 | batadv_dbg(BATADV_DBG_BLA, bat_priv, "bla_tx(): Roaming client %pM detected. Unclaim it.\n", | 1984 | batadv_dbg(BATADV_DBG_BLA, bat_priv, "%s(): Roaming client %pM detected. Unclaim it.\n", |
| 1982 | ethhdr->h_source); | 1985 | __func__, ethhdr->h_source); |
| 1983 | batadv_handle_unclaim(bat_priv, primary_if, | 1986 | batadv_handle_unclaim(bat_priv, primary_if, |
| 1984 | primary_if->net_dev->dev_addr, | 1987 | primary_if->net_dev->dev_addr, |
| 1985 | ethhdr->h_source, vid); | 1988 | ethhdr->h_source, vid); |
| 1986 | goto allow; | 1989 | goto allow; |
| 1987 | } else { | 1990 | } else { |
| 1988 | batadv_dbg(BATADV_DBG_BLA, bat_priv, "bla_tx(): Race for claim %pM detected. Drop packet.\n", | 1991 | batadv_dbg(BATADV_DBG_BLA, bat_priv, "%s(): Race for claim %pM detected. Drop packet.\n", |
| 1989 | ethhdr->h_source); | 1992 | __func__, ethhdr->h_source); |
| 1990 | goto handled; | 1993 | goto handled; |
| 1991 | } | 1994 | } |
| 1992 | } | 1995 | } |