- /*
- * Note about headroom: for some reasons, there seem to be a discrepency
- * between 0-copy and copy mode:
- * - 0-copy: XDP_PACKET_HEADROOM will be added to the user headroom
- * - copy: nothing is added to the user headroom
- * We privileged 0-copy and set headroom so that frame_headroom +
- * XDP_PACKET_HEADROOM == sizeof(vlib_buffer_t), ie data will correctly
- * point to vlib_buffer_t->data for 0-copy. In copy mode, we have to add
- * XDP_PACKET_HEADROOM to desc offset during refill.
- */
- STATIC_ASSERT (sizeof (vlib_buffer_t) >= XDP_PACKET_HEADROOM, "wrong size");
- umem_config.frame_headroom = sizeof (vlib_buffer_t) - XDP_PACKET_HEADROOM;