Lines Matching refs:packet
108 static struct packet rx_packets[MAX_PACKETS];
187 static struct packet tx_packets[MAX_PACKETS];
194 static void packet_output(struct packet *p)
199 for (struct packet *q = p; q != NULL; q = q->next) {
328 static struct packet *get_tx_packet(void)
330 struct packet *p = &tx_packets[tx_idx];
332 // Busy-wait until packet not in flight
351 struct packet *p = buffer->opaque;
356 /* printf("Incoming packet\n"); */
386 struct packet outp;
432 printf("%d: Is an IP packet, type %x\n", disp_get_core_id(), IPH_PROTO(iphdr));
448 printf("Got UDP packet, dest IP %x, dest port %u\n",
459 struct packet *outp = get_tx_packet();
505 // Return here, packet is in flight to user-space
517 //now we have consumed the preregistered pbuf containing a received packet
527 struct packet *p = opaque;
530 // Mark packet as available, if coming from TX packet array
540 /* printf("NULL packet\n"); */
624 // Add buffers to RX ring for packet reception
626 struct packet *p = &rx_packets[i];
650 // Initialize TX packet descriptors
674 /***** Initialize IP/Ethernet packet header template *****/
693 /***** Initialize UDP/IP/Ethernet packet header template *****/
715 /***** Initialize TCP/IP/Ethernet packet header template *****/