Lines Matching defs:packet

708 		const struct hv_netvsc_packet *packet
710 u32 send_index = packet->send_buf_index;
715 q_idx = packet->q_idx;
720 tx_stats->packets += packet->total_packets;
721 tx_stats->bytes += packet->total_bytes;
754 /* Ensure packet is big enough to read header fields */
829 struct hv_netvsc_packet *packet,
839 u32 page_count = packet->cp_partial ? packet->rmsg_pgcnt :
840 packet->page_buf_cnt;
844 remain = packet->total_data_buflen & (net_device->pkt_align - 1);
848 packet->total_data_buflen += padding;
866 struct hv_netvsc_packet *packet,
875 &net_device->chan_table[packet->q_idx];
879 struct netdev_queue *txq = netdev_get_tx_queue(ndev, packet->q_idx);
890 rpkt->send_buf_section_index = packet->send_buf_index;
891 if (packet->send_buf_index == NETVSC_INVALID_INDEX)
894 rpkt->send_buf_section_size = packet->total_data_buflen;
903 if (packet->page_buf_cnt) {
904 if (packet->cp_partial)
905 pb += packet->rmsg_pgcnt;
908 pb, packet->page_buf_cnt,
930 "Unable to send packet pages %u len %u, ret %d\n",
931 packet->page_buf_cnt, packet->total_data_buflen,
947 /* Move packet out of multi send data (msd), and clear msd */
961 struct hv_netvsc_packet *packet,
973 u32 pktlen = packet->total_data_buflen, msd_len = 0;
980 /* If device is rescinded, return error and packet will get dropped. */
984 nvchan = &net_device->chan_table[packet->q_idx];
985 packet->send_buf_index = NETVSC_INVALID_INDEX;
986 packet->cp_partial = false;
988 /* Send a control message or XDP packet directly without accessing
989 * msd (Multi-Send Data) field which may be changed during data packet
993 return netvsc_send_pkt(device, packet, net_device, pb, skb);
1005 } else if (try_batch && msd_len + packet->rmsg_size <
1008 packet->cp_partial = true;
1025 !packet->cp_partial &&
1026 !netif_xmit_stopped(netdev_get_tx_queue(ndev, packet->q_idx));
1031 packet, rndis_msg, pb, xmit_more);
1033 packet->send_buf_index = section_index;
1035 if (packet->cp_partial) {
1036 packet->page_buf_cnt -= packet->rmsg_pgcnt;
1037 packet->total_data_buflen = msd_len + packet->rmsg_size;
1039 packet->page_buf_cnt = 0;
1040 packet->total_data_buflen += msd_len;
1044 packet->total_packets += msdp->pkt->total_packets;
1045 packet->total_bytes += msdp->pkt->total_bytes;
1053 msdp->pkt = packet;
1056 cur_send = packet;
1063 cur_send = packet;
1189 /* Ensure packet is big enough to read header fields */
1197 /* Make sure this is a valid nvsp packet */
1200 "Unknown nvsp packet type received %u\n",
1260 /* Drop incomplete packet */
1281 /* Ensure packet is big enough to read send_table fields */
1324 /* Ensure packet is big enough to read its fields */
1349 /* Ensure packet is big enough to read header fields */
1392 netdev_err(ndev, "unhandled packet type %d, tid %llx\n",