Re: Reserve space for the L2 header in BPF injected frames

2015-12-15 Thread Mike Belopuhov
On Tue, Dec 15, 2015 at 14:30 +0100, Mike Belopuhov wrote: > Hi, > > This reserves max_linkhdr bytes for a link layer header in the newly > allocated cluster in the bpf injection path like it's done for the > packets originating on the host itself (cf. tcp_output). Saves us > time doing costly

Reserve space for the L2 header in BPF injected frames

2015-12-15 Thread Mike Belopuhov
Hi, This reserves max_linkhdr bytes for a link layer header in the newly allocated cluster in the bpf injection path like it's done for the packets originating on the host itself (cf. tcp_output). Saves us time doing costly pool allocations later on. I believe this has been tested by