Re: [PATCH net-next RFC 00/10] socket sendmsg MSG_ZEROCOPY

2015-08-20 Thread David Miller
From: Willem de Bruijn Date: Thu, 20 Aug 2015 22:49:25 -0400 > But there may still be others. Most obvious use case for copy > avoidance is pure device transmit. Excluding loopback may be > a reasonable way to initially limit the attack surface. With a flag > NETIF_F_ZC not supported on lo. Good

Re: [PATCH net-next RFC 00/10] socket sendmsg MSG_ZEROCOPY

2015-08-20 Thread Willem de Bruijn
On Thu, Aug 20, 2015 at 6:56 PM, David Miller wrote: > From: Willem de Bruijn > Date: Thu, 20 Aug 2015 10:36:39 -0400 > >> Datapath integrity does not otherwise depend on payload, with three >> exceptions: checksums, optional sk_filter/tc u32/.. and device + >> driver logic. The effect of wrong c

Re: [PATCH net-next RFC 00/10] socket sendmsg MSG_ZEROCOPY

2015-08-20 Thread David Miller
From: Willem de Bruijn Date: Thu, 20 Aug 2015 10:36:39 -0400 > Datapath integrity does not otherwise depend on payload, with three > exceptions: checksums, optional sk_filter/tc u32/.. and device + > driver logic. The effect of wrong checksums is limited to the > misbehaving process. Filters may

[PATCH net-next RFC 00/10] socket sendmsg MSG_ZEROCOPY

2015-08-20 Thread Willem de Bruijn
From: Willem de Bruijn Add zerocopy socket sendmsg() support with flag MSG_ZEROCOPY. Implement the feature for TCP, UDP, RAW and packet sockets. This is a generalization of a previous packet socket RFC patch http://patchwork.ozlabs.org/patch/413184/ On a send call with MSG_ZEROCOPY, the kerne