Commit d7f7c0ac authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller

ipv6: remove csummode in ip6_append_data()

csummode variable is always CHECKSUM_NONE in ip6_append_data()
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6f532612
...@@ -1198,7 +1198,6 @@ int ip6_append_data(struct sock *sk, int getfrag(void *from, char *to, ...@@ -1198,7 +1198,6 @@ int ip6_append_data(struct sock *sk, int getfrag(void *from, char *to,
int copy; int copy;
int err; int err;
int offset = 0; int offset = 0;
int csummode = CHECKSUM_NONE;
__u8 tx_flags = 0; __u8 tx_flags = 0;
if (flags&MSG_PROBE) if (flags&MSG_PROBE)
...@@ -1411,7 +1410,7 @@ int ip6_append_data(struct sock *sk, int getfrag(void *from, char *to, ...@@ -1411,7 +1410,7 @@ int ip6_append_data(struct sock *sk, int getfrag(void *from, char *to,
/* /*
* Fill in the control structures * Fill in the control structures
*/ */
skb->ip_summed = csummode; skb->ip_summed = CHECKSUM_NONE;
skb->csum = 0; skb->csum = 0;
/* reserve for fragmentation and ipsec header */ /* reserve for fragmentation and ipsec header */
skb_reserve(skb, hh_len + sizeof(struct frag_hdr) + skb_reserve(skb, hh_len + sizeof(struct frag_hdr) +
...@@ -1454,7 +1453,6 @@ int ip6_append_data(struct sock *sk, int getfrag(void *from, char *to, ...@@ -1454,7 +1453,6 @@ int ip6_append_data(struct sock *sk, int getfrag(void *from, char *to,
transhdrlen = 0; transhdrlen = 0;
exthdrlen = 0; exthdrlen = 0;
dst_exthdrlen = 0; dst_exthdrlen = 0;
csummode = CHECKSUM_NONE;
/* /*
* Put the packet on the pending queue * Put the packet on the pending queue
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment