From 0d4f80cf2446f15650703d775b2dfc2328a71cac Mon Sep 17 00:00:00 2001 From: Mingkai Hu Date: Mon, 5 May 2014 12:23:11 +0800 Subject: netpoll: fix incompatible type for csum_tcpudp_magic argument MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The csum_tcpudp_magic argument requires a __be32 type while ‘union inet_addr’ type was passed in. Signed-off-by: Mingkai Hu Change-Id: I3406f7b997d31b516df43f873908886fcc91c06b Reviewed-on: http://git.am.freescale.net:8181/11809 Tested-by: Review Code-CDREVIEW Reviewed-by: Tiefei Zang Reviewed-by: Jose Rivera diff --git a/net/core/netpoll.c b/net/core/netpoll.c index 9e9a6fe..a524a0b 100644 --- a/net/core/netpoll.c +++ b/net/core/netpoll.c @@ -495,8 +495,8 @@ void netpoll_send_udp(struct netpoll *np, const char *msg, int len) skb->ip_summed = CHECKSUM_PARTIAL; else { skb->ip_summed = CHECKSUM_NONE; - udph->check = csum_tcpudp_magic(np->local_ip, - np->remote_ip, + udph->check = csum_tcpudp_magic(np->local_ip.ip, + np->remote_ip.ip, udp_len, IPPROTO_UDP, csum_partial(udph, udp_len, 0)); if (udph->check == 0) -- cgit v0.10.2