static void dp_packet_init__(struct dp_packet *b, size_t allocated, enum dp_packet_source source) { dp_packet_set_allocated(b, allocated); b->source = source; dp_packet_reset_offsets(b); pkt_metadata_init(&b->md, 0); dp_packet_rss_invalidate(b); }
static void dp_packet_init__(struct dp_packet *b, size_t allocated, enum dp_packet_source source) { dp_packet_set_allocated(b, allocated); b->source = source; dp_packet_reset_offsets(b); pkt_metadata_init(&b->md, 0); dp_packet_rss_invalidate(b); dp_packet_reset_cutlen(b); /* By default assume the packet type to be Ethernet. */ b->packet_type = htonl(PT_ETH); }