[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 07 Aug 2013 18:08:45 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: Ben Greear <greearb@...delatech.com>
Cc: "Vitaly E. Lavrov" <lve@...p.ru>, netdev@...r.kernel.org,
davem@...emloft.net
Subject: Re: [PATCH] veth: remove hardware checksum feature
On Wed, 2013-08-07 at 17:23 -0700, Ben Greear wrote:
> I am receiving the packet into user space by reading veth2
> using a packet socket, and then writing that packet out to eth6
> (e100e). As far as I can tell, it reads from veth2 with bad checksum
> and then goes onto the wire with bad checksum.
>
Then, when you read the packet socket, you probably have an indication
that checksum is to be computed or ignored.
Your application breaks because of this.
If forwarding was done by the kernel, the checksum would be filled
either by hardware, or core network helpers.
> Is it ever valid to *read* a packet with bad checksum though? I thought
> the bogus bad hw-checksum issue was only on the tx-side as far as sniffing goes?
We have same flags on loopback interface.
So using your application on loopback should break the same ?
I am not saying your application is buggy, maybe we need a helper in
net/packet/af_packet.c. Please check TP_STATUS_CSUMNOTREADY
This was added 6 years ago in commit 8dc4194474159660
("[PACKET]: Add optional checksum computation for recvmsg")
--
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