summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorMingkai Hu <Mingkai.Hu@freescale.com>2014-05-05 04:23:11 (GMT)
committerJose Rivera <German.Rivera@freescale.com>2014-05-06 14:15:04 (GMT)
commit0d4f80cf2446f15650703d775b2dfc2328a71cac (patch)
tree767b8aff8f580554b3e6852abc73046751e956c7 /net
parent88a2952dcfe99540b5602bb34814f01e4342d771 (diff)
downloadlinux-fsl-qoriq-0d4f80cf2446f15650703d775b2dfc2328a71cac.tar.xz
netpoll: fix incompatible type for csum_tcpudp_magic argument
The csum_tcpudp_magic argument requires a __be32 type while ‘union inet_addr’ type was passed in. Signed-off-by: Mingkai Hu <Mingkai.Hu@freescale.com> Change-Id: I3406f7b997d31b516df43f873908886fcc91c06b Reviewed-on: http://git.am.freescale.net:8181/11809 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Tiefei Zang <tie-fei.zang@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
Diffstat (limited to 'net')
-rw-r--r--net/core/netpoll.c4
1 files changed, 2 insertions, 2 deletions
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)