pktgen: refactor pg_init() code
authorWANG Cong <xiyou.wangcong@gmail.com>
Sun, 22 May 2011 00:52:08 +0000 (00:52 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 May 2011 01:01:22 +0000 (21:01 -0400)
commitce14f8946a294ffa741ec29558a1c7e455cecd3b
tree0c96385fe8647f750a6a797bf0c192a732a1f69c
parent68d5ac2ed6180567407e4187e206df3ba6466373
pktgen: refactor pg_init() code

This also shrinks the object size a little.

   text    data     bss     dec     hex filename
  28834     186       8   29028    7164 net/core/pktgen.o
  28816     186       8   29010    7152 net/core/pktgen.o.AFTER

Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>
Cc: "David Miller" <davem@davemloft.net>,
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/pktgen.c