From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: Simon Horman <horms+renesas@verge.net.au>,
David Miller <davem@davemloft.net>
Cc: Magnus Damm <magnus.damm@gmail.com>,
netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH v2 net] ravb: expand rx descriptor data to accommodate hw checksum
Date: Wed, 23 Jan 2019 18:01:57 +0300 [thread overview]
Message-ID: <a206de4d-60bb-e2d8-9bf6-65b081effb62@cogentembedded.com> (raw)
In-Reply-To: <20190123111452.27845-1-horms+renesas@verge.net.au>
On 01/23/2019 02:14 PM, Simon Horman wrote:
> EtherAVB may provide a checksum of packet data appended to packet data. In
> order to allow this checksum to be received by the host descriptor data
> needs to be enlarged by 2 bytes to accommodate the checksum.
>
> In the case of MTU-sized packets without a VLAN tag the
> checksum were already accommodated by virtue of the space reserved for the
> VLAN tag. However, a packet of MTU-size with a VLAN tag consumed all
> packet data space provided by a descriptor leaving no space for the
> trailing checksum.
>
> This was not detected by the driver which incorrectly used the last two
> bytes of packet data as the checksum and truncate the packet by two bytes.
> This resulted all such packets being dropped.
>
> A work around is to disable RX checksum offload
> # ethtool -K eth0 rx off
>
> This patch resolves this problem by increasing the size available for
> packet data in RX descriptors by two bytes.
>
> Tested on R-Car E3 (r8a77990) ES1.0 based Ebisu-4D board
>
> v2
> * Use sizeof(__sum16) directly rather than adding a driver-local
> #define for the size of the checksum provided by the hw (2 bytes).
>
> Fixes: 4d86d3818627 ("ravb: RX checksum offload")
> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Reviewed-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
[...]
MBR, Sergei
next prev parent reply other threads:[~2019-01-23 15:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-23 11:14 [PATCH v2 net] ravb: expand rx descriptor data to accommodate hw checksum Simon Horman
2019-01-23 15:01 ` Sergei Shtylyov [this message]
2019-01-23 17:25 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a206de4d-60bb-e2d8-9bf6-65b081effb62@cogentembedded.com \
--to=sergei.shtylyov@cogentembedded.com \
--cc=davem@davemloft.net \
--cc=horms+renesas@verge.net.au \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=magnus.damm@gmail.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox