Re: [PATCH net v2] net: pktgen: fix pkt_size

2016-10-03 Thread Greg
On Sat, 2016-10-01 at 20:05 +0200, Paolo Abeni wrote: > On Fri, 2016-09-30 at 08:39 -0700, Greg wrote: > > On Fri, 2016-09-30 at 16:56 +0200, Paolo Abeni wrote: > > > The commit 879c7220e828 ("net: pktgen: Observe needed_headroom > > > of the device") increased the 'pkt_overhead' field value by >

Re: [PATCH net v2] net: pktgen: fix pkt_size

2016-10-02 Thread David Miller
From: Paolo Abeni Date: Fri, 30 Sep 2016 16:56:45 +0200 > The commit 879c7220e828 ("net: pktgen: Observe needed_headroom > of the device") increased the 'pkt_overhead' field value by > LL_RESERVED_SPACE. > As a side effect the generated packet size, computed as: > > /*

Re: [PATCH net v2] net: pktgen: fix pkt_size

2016-10-01 Thread Paolo Abeni
On Fri, 2016-09-30 at 08:39 -0700, Greg wrote: > On Fri, 2016-09-30 at 16:56 +0200, Paolo Abeni wrote: > > The commit 879c7220e828 ("net: pktgen: Observe needed_headroom > > of the device") increased the 'pkt_overhead' field value by > > LL_RESERVED_SPACE. > > As a side effect the generated packet

Re: [PATCH net v2] net: pktgen: fix pkt_size

2016-09-30 Thread Greg
On Fri, 2016-09-30 at 16:56 +0200, Paolo Abeni wrote: > The commit 879c7220e828 ("net: pktgen: Observe needed_headroom > of the device") increased the 'pkt_overhead' field value by > LL_RESERVED_SPACE. > As a side effect the generated packet size, computed as: > > /* Eth + IPh + UDPh + mpls

[PATCH net v2] net: pktgen: fix pkt_size

2016-09-30 Thread Paolo Abeni
The commit 879c7220e828 ("net: pktgen: Observe needed_headroom of the device") increased the 'pkt_overhead' field value by LL_RESERVED_SPACE. As a side effect the generated packet size, computed as: /* Eth + IPh + UDPh + mpls */ datalen = pkt_dev->cur_pkt_size - 14 - 20 - 8 -