Lines Matching defs:packet
331 /* If forwarding a packet, we use the recorded queue when
408 struct hv_netvsc_packet *packet,
416 /* The packet is laid out thus:
426 packet->rmsg_size = len;
427 packet->rmsg_pgcnt = slots_used;
526 struct hv_netvsc_packet *packet = NULL;
546 * of pages in a single packet. If skb is scattered around
574 /* Use the skb control buffer for building up the packet */
577 packet = (struct hv_netvsc_packet *)skb->cb;
579 packet->q_idx = skb_get_queue_mapping(skb);
581 packet->total_data_buflen = skb->len;
582 packet->total_bytes = skb->len;
583 packet->total_packets = 1;
589 rndis_msg->msg_len = packet->total_data_buflen;
593 .data_len = packet->total_data_buflen,
611 * to transmit the 802.1Q packet
625 packet->total_data_buflen -= VLAN_HLEN;
626 packet->total_bytes -= VLAN_HLEN;
627 rndis_msg->msg_len = packet->total_data_buflen;
628 rndis_msg->msg.pkt.data_len = packet->total_data_buflen;
704 packet->total_data_buflen = rndis_msg->msg_len;
705 packet->page_buf_cnt = init_page_array(rndis_msg, rndis_msg_size,
706 skb, packet, pb);
708 /* timestamp packet in software */
711 ret = netvsc_send(net, packet, rndis_msg, pb, skb, xdp_tx);
751 /* Ensure the packet is big enough to access its fields */
753 netdev_err(net, "invalid rndis_indicate_status packet, len: %u\n",
892 * netvsc_recv_callback - Callback when we receive a packet from the
931 * Even if injecting the packet, record the statistics
2047 * present send GARP packet to network peers with netif_notify_peers().