Re: [RFC PATCH 01/14] packet: introduce AF_PACKET V4 userspace API

2017-11-15 Thread chet l
On Tue, Oct 31, 2017 at 5:41 AM, Björn Töpel wrote: > From: Björn Töpel > > +/* > + * struct tpacket_memreg_req is used in conjunction with PACKET_MEMREG > + * to register user memory which should be used to store the packet > + * data. > + * > + * There are some constraints for the memory being

Re: [RFC PATCH 01/14] packet: introduce AF_PACKET V4 userspace API

2017-11-15 Thread chet l
> > Actually, we started out with that approach, where the packet_mmap > call mapped Tx/Rx descriptor rings and the packet buffer region. We > later moved to this (register umem) approach, because it's more > flexible for user space, not having to use a AF_PACKET specific > allocator (i.e. continue