Re: [RFC PATCH 03/14] packet: enable AF_PACKET V4 rings

2017-11-03 Thread Björn Töpel
2017-11-03 5:16 GMT+01:00 Willem de Bruijn : >> +/** >> + * tp4q_enqueue_from_array - Enqueue entries from packet array to tp4 queue >> + * >> + * @a: Pointer to the packet array to enqueue from >> + * @dcnt: Max number of entries to enqueue >> + * >> + * Returns 0 for success or an errno at failur

Re: [RFC PATCH 03/14] packet: enable AF_PACKET V4 rings

2017-11-02 Thread Willem de Bruijn
> +/** > + * tp4q_enqueue_from_array - Enqueue entries from packet array to tp4 queue > + * > + * @a: Pointer to the packet array to enqueue from > + * @dcnt: Max number of entries to enqueue > + * > + * Returns 0 for success or an errno at failure > + **/ > +static inline int tp4q_enqueue_from_arr

[RFC PATCH 03/14] packet: enable AF_PACKET V4 rings

2017-10-31 Thread Björn Töpel
From: Björn Töpel Allow creation of AF_PACKET V4 rings. Tx and Rx are still disabled. Signed-off-by: Björn Töpel --- include/linux/tpacket4.h | 391 +++ net/packet/af_packet.c | 262 +-- net/packet/internal.h| 4 +