login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
August
»
18
Re: [patch nf-next] IPVS: ICMPv6 checksum calculation
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Simon Horman
Subject:
Re: [patch nf-next] IPVS: ICMPv6 checksum calculation
Date: Tuesday, August 17, 2010 - 10:57 pm
On Wed, Aug 18, 2010 at 12:20:14PM +0800, xiaoyu Du wrote:
quoted text
> 2010/8/18 David Miller <davem@davemloft.net>: > > From: Simon Horman <horms@verge.net.au> > > Date: Wed, 18 Aug 2010 09:21:49 +0900 > > > >> [ CCing netdev for comment ] > >> > >> On Tue, Aug 17, 2010 at 12:25:56PM +0300, Julian Anastasov wrote: > > ... > >>> May be ip_vs_checksum_complete() is not needed here? > >>> Also, skb->csum is not valid for every ip_summed value. > >>> May be we need to apply CHECKSUM_PARTIAL kind of setup for the IPv6. > >>> Such example is net/ipv6/udp.c:udp6_ufo_send_check(). > >>> Later dev_queue_xmit() and skb_checksum_help() should take care > >>> for the next steps. Something like this can be tested: > >>> > >>> icmph->icmp6_cksum = csum_ipv6_magic(&iph->saddr, > >>> &iph->daddr, > >>> skb->len - icmp_offset, IPPROTO_ICMPV6, > >>> 0); > >>> skb->csum_start = skb_network_header(skb) - skb->head + > >>> icmp_offset; > >>> skb->csum_offset = offsetof(struct icmp6hdr, icmp6_cksum); > >>> skb->ip_summed = CHECKSUM_PARTIAL; > >>> > > > > Yes, using CHECKSUM_PARTIAL unconditionally would work. > > > Thanks, I learned this. You gave me a big cake.
[ please don't top-post ] Xiaoyu, are you in a position to test the code proposed by Julian? --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[patch nf-next] IPVS: ICMPv6 checksum calculation
, Simon Horman
, (Tue Aug 17, 12:00 am)
Re: [patch nf-next] IPVS: ICMPv6 checksum calculation
, Julian Anastasov
, (Tue Aug 17, 2:25 am)
Re: [patch nf-next] IPVS: ICMPv6 checksum calculation
, Simon Horman
, (Tue Aug 17, 5:21 pm)
Re: [patch nf-next] IPVS: ICMPv6 checksum calculation
, David Miller
, (Tue Aug 17, 5:26 pm)
Re: [patch nf-next] IPVS: ICMPv6 checksum calculation
, xiaoyu Du
, (Tue Aug 17, 9:20 pm)
Re: [patch nf-next] IPVS: ICMPv6 checksum calculation
, Simon Horman
, (Tue Aug 17, 10:57 pm)
Re: [patch nf-next] IPVS: ICMPv6 checksum calculation
, xiaoyu Du
, (Fri Aug 20, 4:14 am)
Re: [patch nf-next] IPVS: ICMPv6 checksum calculation
, Julian Anastasov
, (Fri Aug 20, 6:48 am)
Re: [patch nf-next] IPVS: ICMPv6 checksum calculation
, xiaoyu Du
, (Sun Aug 22, 7:54 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
David Lang
Re: [patch] MTD: fix DOC2000/2001/2001PLUS build error
Steven Rostedt
Re: [PATCH] input: Fix interrupt enable in i8042_ctr when enabling interrupt fails
Linus Torvalds
Re: [patch] epoll use a single inode ...
David Miller
Re: tg3: unable to handle null pointer dereference
Frank Seidel
Re: [RFC 13/13] Char: nozomi, cleanup read and write
git-commits-head
:
Linux Kernel Mailing List
amba: struct device - replace bus_id with dev_name(), dev_set_name()
Linux Kernel Mailing List
cpumask: make irq_set_affinity() take a const struct cpumask
Linux Kernel Mailing List
cgroups: fix probable race with put_css_set[_taskexit] and find_css_set
Linux Kernel Mailing List
[libata] Export ata_pio_queue_task() so that it can be used from sata_mv.
Linux Kernel Mailing List
[ARM] 5209/1: metronomefb: changes to use platform framebuffer
git
:
Junio C Hamano
Re: mingw, windows, crlf/lf, and git
Junio C Hamano
Re: [PATCH 1/2] Teach git-describe to display distances from tags.
Daniel Barkalow
Re: git and mtime
Linus Torvalds
Re: [PATCH] Teach 'git pull' the '--rebase' option
Alex Riesen
Re: Easy shell question: how to make a script killing all his childs when killed?
freebsd-current
:
Mark Linimon
Why the FreeBSD license will not be changing
Michael Moll
Re: Unable to boot on ECS K7S5A
FreeBSD Tinderbox
[head tinderbox] failure on ia64/ia64
Jille Timmermans
Re: svn commit: r185482 - head/sys/dev/ath/ath_rate/sample
Hayer, Sukhjinder
8_CURRENT boot problem
linux-netdev
:
Timo Teräs
ip xfrm policy semantics
Andi Kleen
Re: [ANNOUNCE]: First release of nftables
John P Poet
Realtek 8111C transmit timed out
Jeff Garzik
Re: [PATCH] fix netxen_pci_tbl[] breakage
Jesper Dangaard Brouer
[PATCH] iputils: arping fails to set correct broadcast address
Colocation donated by:
Syndicate