]> git.baikalelectronics.ru Git - kernel.git/commit
pktgen: bug fix in transmission headers with frags=0
authorDaniel Turull <daniel.turull@gmail.com>
Mon, 14 Mar 2011 20:47:40 +0000 (13:47 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Mar 2011 20:47:40 +0000 (13:47 -0700)
commite64e90c1e18e394ec372b3d36cdb003ffd5bda8e
treebd448f392fbc522034f51e032f5f25bc87951a38
parent435c3e80be57930398a7890ca3b339544e18c966
pktgen: bug fix in transmission headers with frags=0

(bug introduced by commit d62f11ae363a64f808ce6679
(pktgen: speedup fragmented skbs)

The headers of pktgen were incorrectly added in a pktgen packet
without frags (frags=0). There was an offset in the pktgen headers.

The cause was in reusing the pgh variable as a return variable in skb_put
when adding the payload to the skb.

Signed-off-by: Daniel Turull <daniel.turull@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
net/core/pktgen.c