]> git.karo-electronics.de Git - mv-sheeva.git/commit
pktgen: create num frags requested
authoramit salecha <amit.salecha@qlogic.com>
Fri, 22 Apr 2011 16:22:20 +0000 (16:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Apr 2011 18:37:35 +0000 (11:37 -0700)
commit7d36a991e8d36b8ae87e2aa1158d3735e656253b
tree7ed43c33f2142dcf024595ab7c087cacf892ed75
parentb6202f97897a13ef531b822ab326dfc7eb90bdaf
pktgen: create num frags requested

Pktgen doesn't generate number of frags requested.
Divide packet size by number of frags and fill that in every frags.

Example:
With packet size 1470, it generate only 11 frags. Initial frags
get lenght 706, 353, 177....so on. Last frag get divided by 2.

Now with this fix, each frags will get 78 bytes.

Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/pktgen.c