Lines Matching defs:packet
283 /* If forwarding a packet, we use the recorded queue when
360 struct hv_netvsc_packet *packet,
368 /* The packet is laid out thus:
378 packet->rmsg_size = len;
379 packet->rmsg_pgcnt = slots_used;
478 struct hv_netvsc_packet *packet = NULL;
499 * of pages in a single packet. If skb is scattered around
527 /* Use the skb control buffer for building up the packet */
530 packet = (struct hv_netvsc_packet *)skb->cb;
532 packet->q_idx = skb_get_queue_mapping(skb);
534 packet->total_data_buflen = skb->len;
535 packet->total_bytes = skb->len;
536 packet->total_packets = 1;
542 rndis_msg->msg_len = packet->total_data_buflen;
546 .data_len = packet->total_data_buflen,
564 * to transmit the 802.1Q packet
578 packet->total_data_buflen -= VLAN_HLEN;
579 packet->total_bytes -= VLAN_HLEN;
580 rndis_msg->msg_len = packet->total_data_buflen;
581 rndis_msg->msg.pkt.data_len = packet->total_data_buflen;
657 packet->total_data_buflen = rndis_msg->msg_len;
658 packet->page_buf_cnt = init_page_array(rndis_msg, rndis_msg_size,
659 skb, packet, pb);
661 /* timestamp packet in software */
664 ret = netvsc_send(net, packet, rndis_msg, pb, skb, xdp_tx);
705 /* Ensure the packet is big enough to access its fields */
707 netdev_err(net, "invalid rndis_indicate_status packet, len: %u\n",
730 netdev_err(net, "invalid rndis_indicate_status packet\n");
871 * netvsc_recv_callback - Callback when we receive a packet from the
913 * Even if injecting the packet, record the statistics
2043 * present send GARP packet to network peers with netif_notify_peers().