[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAEP_g=8L0hse+AezexT7NDgEs0A1sjP3NY9LC7C-5wDsf-OAEQ@mail.gmail.com>
Date: Mon, 12 May 2014 17:13:29 -0700
From: Jesse Gross <jesse@...ira.com>
To: Tom Herbert <therbert@...gle.com>
Cc: David Miller <davem@...emloft.net>, netdev <netdev@...r.kernel.org>
Subject: Re: [PATCH 8/8] vxlan: Add support for zero UDP6 checksums
On Mon, May 12, 2014 at 4:35 PM, Tom Herbert <therbert@...gle.com> wrote:
> On Mon, May 12, 2014 at 2:41 PM, Jesse Gross <jesse@...ira.com> wrote:
>> On Mon, May 12, 2014 at 9:59 AM, Tom Herbert <therbert@...gle.com> wrote:
>>> @@ -1756,7 +1754,8 @@ int vxlan_xmit_skb(struct vxlan_sock *vs,
>>> uh->source = src_port;
>>>
>>> uh->len = htons(skb->len);
>>> - uh->check = 0;
>>> +
>>> + udp_set_csum(vs->sock->sk, skb, src, dst, skb->len);
>>
>> How does this interact with inner checksum offloading? I don't think
>> that we have any infrastructure to support computing two checksums on
>> a packet yet.
>
> Right, as it stands now we could overwrite the csum offload parameters
> for the inner header which would be a problem. I will fix that.
>
> The ability to offload two csums in TX could be quite useful for
> encapsulations like vxlan. I don't know if any HW is planning to
> support that...
I think it would be good to assume that we might want to do that as
something might appear in the not too distant future...
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists