nc_packet 255 net/batman-adv/network-coding.c static void batadv_nc_packet_free(struct batadv_nc_packet *nc_packet, nc_packet 259 net/batman-adv/network-coding.c kfree_skb(nc_packet->skb); nc_packet 261 net/batman-adv/network-coding.c consume_skb(nc_packet->skb); nc_packet 263 net/batman-adv/network-coding.c batadv_nc_path_put(nc_packet->nc_path); nc_packet 264 net/batman-adv/network-coding.c kfree(nc_packet); nc_packet 572 net/batman-adv/network-coding.c static void batadv_nc_send_packet(struct batadv_nc_packet *nc_packet) nc_packet 574 net/batman-adv/network-coding.c batadv_send_unicast_skb(nc_packet->skb, nc_packet->neigh_node); nc_packet 575 net/batman-adv/network-coding.c nc_packet->skb = NULL; nc_packet 576 net/batman-adv/network-coding.c batadv_nc_packet_free(nc_packet, false); nc_packet 594 net/batman-adv/network-coding.c struct batadv_nc_packet *nc_packet) nc_packet 605 net/batman-adv/network-coding.c !batadv_has_timed_out(nc_packet->timestamp, timeout)) nc_packet 609 net/batman-adv/network-coding.c list_del(&nc_packet->list); nc_packet 610 net/batman-adv/network-coding.c batadv_nc_packet_free(nc_packet, true); nc_packet 633 net/batman-adv/network-coding.c struct batadv_nc_packet *nc_packet) nc_packet 643 net/batman-adv/network-coding.c !batadv_has_timed_out(nc_packet->timestamp, timeout)) nc_packet 649 net/batman-adv/network-coding.c nc_packet->skb->len + ETH_HLEN); nc_packet 650 net/batman-adv/network-coding.c list_del(&nc_packet->list); nc_packet 651 net/batman-adv/network-coding.c batadv_nc_send_packet(nc_packet); nc_packet 673 net/batman-adv/network-coding.c struct batadv_nc_packet *nc_packet, *nc_packet_tmp; nc_packet 690 net/batman-adv/network-coding.c list_for_each_entry_safe(nc_packet, nc_packet_tmp, nc_packet 692 net/batman-adv/network-coding.c ret = process_fn(bat_priv, nc_path, nc_packet); nc_packet 1047 net/batman-adv/network-coding.c struct batadv_nc_packet *nc_packet, nc_packet 1081 net/batman-adv/network-coding.c neigh_tmp = nc_packet->neigh_node; nc_packet 1102 net/batman-adv/network-coding.c first_dest = nc_packet->neigh_node; nc_packet 1103 net/batman-adv/network-coding.c first_source = nc_packet->nc_path->prev_hop; nc_packet 1106 net/batman-adv/network-coding.c packet1 = (struct batadv_unicast_packet *)nc_packet->skb->data; nc_packet 1108 net/batman-adv/network-coding.c packet_id1 = nc_packet->packet_id; nc_packet 1115 net/batman-adv/network-coding.c second_dest = nc_packet->neigh_node; nc_packet 1116 net/batman-adv/network-coding.c second_source = nc_packet->nc_path->prev_hop; nc_packet 1118 net/batman-adv/network-coding.c packet2 = (struct batadv_unicast_packet *)nc_packet->skb->data; nc_packet 1121 net/batman-adv/network-coding.c packet_id2 = nc_packet->packet_id; nc_packet 1127 net/batman-adv/network-coding.c if (skb->len <= nc_packet->skb->len) { nc_packet 1128 net/batman-adv/network-coding.c skb_dest = nc_packet->skb; nc_packet 1132 net/batman-adv/network-coding.c skb_src = nc_packet->skb; nc_packet 1208 net/batman-adv/network-coding.c nc_packet->skb = NULL; nc_packet 1209 net/batman-adv/network-coding.c batadv_nc_packet_free(nc_packet, false); nc_packet 1270 net/batman-adv/network-coding.c struct batadv_nc_packet *nc_packet, *nc_packet_tmp; nc_packet 1297 net/batman-adv/network-coding.c list_for_each_entry_safe(nc_packet, nc_packet_tmp, nc_packet 1299 net/batman-adv/network-coding.c if (!batadv_nc_skb_coding_possible(nc_packet->skb, nc_packet 1305 net/batman-adv/network-coding.c list_del(&nc_packet->list); nc_packet 1306 net/batman-adv/network-coding.c nc_packet_out = nc_packet; nc_packet 1338 net/batman-adv/network-coding.c struct batadv_nc_packet *nc_packet = NULL; nc_packet 1353 net/batman-adv/network-coding.c nc_packet = batadv_nc_path_search(bat_priv, in_nc_node, nc_packet 1355 net/batman-adv/network-coding.c if (nc_packet) nc_packet 1361 net/batman-adv/network-coding.c return nc_packet; nc_packet 1420 net/batman-adv/network-coding.c struct batadv_nc_packet *nc_packet = NULL; nc_packet 1425 net/batman-adv/network-coding.c nc_packet = batadv_nc_skb_src_search(bat_priv, skb, nc_packet 1430 net/batman-adv/network-coding.c if (nc_packet) nc_packet 1435 net/batman-adv/network-coding.c if (!nc_packet) nc_packet 1441 net/batman-adv/network-coding.c batadv_nc_skb_store_before_coding(bat_priv, nc_packet->skb, nc_packet 1442 net/batman-adv/network-coding.c nc_packet->neigh_node->addr); nc_packet 1445 net/batman-adv/network-coding.c if (batadv_nc_code_packets(bat_priv, skb, ethhdr, nc_packet, nc_packet 1453 net/batman-adv/network-coding.c batadv_nc_send_packet(nc_packet); nc_packet 1471 net/batman-adv/network-coding.c struct batadv_nc_packet *nc_packet; nc_packet 1473 net/batman-adv/network-coding.c nc_packet = kzalloc(sizeof(*nc_packet), GFP_ATOMIC); nc_packet 1474 net/batman-adv/network-coding.c if (!nc_packet) nc_packet 1478 net/batman-adv/network-coding.c nc_packet->timestamp = jiffies; nc_packet 1479 net/batman-adv/network-coding.c nc_packet->packet_id = packet_id; nc_packet 1480 net/batman-adv/network-coding.c nc_packet->skb = skb; nc_packet 1481 net/batman-adv/network-coding.c nc_packet->neigh_node = neigh_node; nc_packet 1482 net/batman-adv/network-coding.c nc_packet->nc_path = nc_path; nc_packet 1486 net/batman-adv/network-coding.c list_add_tail(&nc_packet->list, &nc_path->packet_list); nc_packet 1642 net/batman-adv/network-coding.c struct batadv_nc_packet *nc_packet) nc_packet 1702 net/batman-adv/network-coding.c nc_packet->skb->data + h_size, nc_packet 1706 net/batman-adv/network-coding.c if (nc_packet->skb->len > coding_len + h_size) { nc_packet 1720 net/batman-adv/network-coding.c batadv_nc_packet_free(nc_packet, false); nc_packet 1739 net/batman-adv/network-coding.c struct batadv_nc_packet *tmp_nc_packet, *nc_packet = NULL; nc_packet 1771 net/batman-adv/network-coding.c nc_packet = tmp_nc_packet; nc_packet 1777 net/batman-adv/network-coding.c if (nc_packet) nc_packet 1782 net/batman-adv/network-coding.c if (!nc_packet) nc_packet 1786 net/batman-adv/network-coding.c return nc_packet; nc_packet 1804 net/batman-adv/network-coding.c struct batadv_nc_packet *nc_packet; nc_packet 1828 net/batman-adv/network-coding.c nc_packet = batadv_nc_find_decoding_packet(bat_priv, ethhdr, nc_packet 1830 net/batman-adv/network-coding.c if (!nc_packet) { nc_packet 1839 net/batman-adv/network-coding.c if (skb_linearize(nc_packet->skb) < 0) nc_packet 1843 net/batman-adv/network-coding.c unicast_packet = batadv_nc_skb_decode_packet(bat_priv, skb, nc_packet); nc_packet 1857 net/batman-adv/network-coding.c batadv_nc_packet_free(nc_packet, true);