![]() |
lvs-devel
|
| To: | Simon Horman <horms@xxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [rfc 1/3] ipvs: handle PARTIAL_CHECKSUM |
| Cc: | lvs-devel@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxxxxxx, Siim Põder <siim@xxxxxxxxxxxxxxx>, Julian Anastasov <ja@xxxxxx>, Malcolm Turnbull <malcolm@xxxxxxxxxxxxxxxx>, Julius Volz <juliusv@xxxxxxxxxx>, Vince Busam <vbusam@xxxxxxxxxx> |
| From: | Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> |
| Date: | Mon, 8 Sep 2008 17:24:40 +1000 |
On Mon, Sep 08, 2008 at 12:04:21PM +1000, Simon Horman wrote:
>
> /* Adjust TCP checksums */
> - if (!cp->app && (tcph->check != 0)) {
> + if (skb->ip_summed == CHECKSUM_PARTIAL) {
> + tcp_partial_csum_update(cp->af, tcph, &cp->daddr, &cp->vaddr,
> + htonl(oldlen),
> + htonl(skb->len - tcphoff));
I don't know what cp->app is but should we be updating the checksum
when it's set? The previous code seems to want to compute a full
checksum instead.
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe lvs-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [rfc 3/3] ipvs: Consolidate checksuming code, Simon Horman |
|---|---|
| Next by Date: | Re: [rfc 1/3] ipvs: handle PARTIAL_CHECKSUM, Simon Horman |
| Previous by Thread: | [rfc 1/3] ipvs: handle PARTIAL_CHECKSUM, Simon Horman |
| Next by Thread: | Re: [rfc 1/3] ipvs: handle PARTIAL_CHECKSUM, Simon Horman |
| Indexes: | [Date] [Thread] [Top] [All Lists] |