summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2013-07-25 12:08:04 (GMT)
committerDavid S. Miller <davem@davemloft.net>2013-07-28 05:18:00 (GMT)
commit03c633e73353d3c116cab6164933d69ee2180470 (patch)
treea8ce3baa7df828490c8ea1635b624794ed30b32c
parentc26bf4a51308c85a6f97628253b99767a84ff90a (diff)
downloadlinux-fsl-qoriq-03c633e73353d3c116cab6164933d69ee2180470.tar.xz
pktgen: Use ip_send_check() to compute checksum
Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/core/pktgen.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/core/pktgen.c b/net/core/pktgen.c
index 48cebf2..2dec6f1 100644
--- a/net/core/pktgen.c
+++ b/net/core/pktgen.c
@@ -2758,8 +2758,7 @@ static struct sk_buff *fill_packet_ipv4(struct net_device *odev,
iph->frag_off = 0;
iplen = 20 + 8 + datalen;
iph->tot_len = htons(iplen);
- iph->check = 0;
- iph->check = ip_fast_csum((void *)iph, iph->ihl);
+ ip_send_check(iph);
skb->protocol = protocol;
skb->dev = odev;
skb->pkt_type = PACKET_HOST;