On Tue, 2017-09-19 at 00:34 -0700, Petar Penkov wrote: > Add a TUN/TAP receive mode that exercises the napi_gro_frags() > interface. This mode is available only in TAP mode, as the interface > expects packets with Ethernet headers. > > Furthermore, packets follow the layout of the iovec_iter that was > received. The first iovec is the linear data, and every one after the > first is a fragment. If there are more fragments than the max number, > drop the packet. Additionally, invoke eth_get_headlen() to exercise flow > dissector code and to verify that the header resides in the linear data. > > The napi_gro_frags() mode requires setting the IFF_NAPI_FRAGS option. > This is imposed because this mode is intended for testing via tools like > syzkaller and packetdrill, and the increased flexibility it provides can > introduce security vulnerabilities. > > Signed-off-by: Petar Penkov <peterpenko...@gmail.com> > Cc: Eric Dumazet <eduma...@google.com> > Cc: Mahesh Bandewar <mahe...@google.com> > Cc: Willem de Bruijn <will...@google.com> > Cc: da...@davemloft.net > Cc: ppen...@stanford.edu > ---
Again, very nice, thanks a lot Petar. Acked-by: Eric Dumazet <eduma...@google.com>