netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Nicolas Ferre <nicolas.ferre@microchip.com>
To: Jennifer Dahm <jennifer.dahm@ni.com>, <netdev@vger.kernel.org>,
	"David S . Miller" <davem@davemloft.net>,
	Michal Simek <michals@xilinx.com>,
	Harini Katakam <harini.katakam@xilinx.com>
Cc: Nathan Sullivan <nathan.sullivan@ni.com>
Subject: Re: [RFC PATCH 2/2] net: macb: Disable TX checksum offloading on all Zynq
Date: Mon, 4 Jun 2018 17:06:58 +0200	[thread overview]
Message-ID: <2e8da660-36d9-7aa0-bf66-86644eaf715b@microchip.com> (raw)
In-Reply-To: <1527284654-24835-3-git-send-email-jennifer.dahm@ni.com>

On 25/05/2018 at 23:44, Jennifer Dahm wrote:
> The Zynq ethernet hardware has checksum offloading bugs that cause
> small UDP packets (<= 2 bytes) to be sent with an incorrect checksum
> (0xffff) and forwarded UDP packets to be re-checksummed, which is
> illegal behavior. The best solution we have right now is to disable
> hardware TX checksum offloading entirely.
> 
> Signed-off-by: Jennifer Dahm <jennifer.dahm@ni.com>

Adding some xilinx people I know...

> ---
>   drivers/net/ethernet/cadence/macb_main.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c
> index a5d564b..e8cc68a 100644
> --- a/drivers/net/ethernet/cadence/macb_main.c
> +++ b/drivers/net/ethernet/cadence/macb_main.c
> @@ -3807,7 +3807,8 @@ static const struct macb_config zynqmp_config = {
>   };
>   
>   static const struct macb_config zynq_config = {
> -	.caps = MACB_CAPS_GIGABIT_MODE_AVAILABLE | MACB_CAPS_NO_GIGABIT_HALF,
> +	.caps = MACB_CAPS_GIGABIT_MODE_AVAILABLE | MACB_CAPS_NO_GIGABIT_HALF
> +	      | MACB_CAPS_DISABLE_TX_HW_CSUM,
>   	.dma_burst_length = 16,
>   	.clk_init = macb_clk_init,
>   	.init = macb_init,
> 


-- 
Nicolas Ferre

  reply	other threads:[~2018-06-04 15:09 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-25 21:44 [RFC PATCH 0/2] net: macb: Disable TX checksum offloading on all Zynq Jennifer Dahm
2018-05-25 21:44 ` [RFC PATCH 1/2] net: macb: Add CAP to disable hardware TX checksum offloading Jennifer Dahm
2018-06-04 15:13   ` Nicolas Ferre
2018-06-07 16:43     ` Jennifer Dahm
2018-05-25 21:44 ` [RFC PATCH 2/2] net: macb: Disable TX checksum offloading on all Zynq Jennifer Dahm
2018-06-04 15:06   ` Nicolas Ferre [this message]
2018-06-06  6:50     ` Michal Simek
2018-06-04 15:05 ` [RFC PATCH 0/2] " Nicolas Ferre
2018-06-05  4:51   ` Harini Katakam
2018-08-01 12:53     ` Harini Katakam
2018-08-07  8:50       ` Claudiu Beznea
2018-08-07  9:09         ` Harini Katakam

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=2e8da660-36d9-7aa0-bf66-86644eaf715b@microchip.com \
    --to=nicolas.ferre@microchip.com \
    --cc=davem@davemloft.net \
    --cc=harini.katakam@xilinx.com \
    --cc=jennifer.dahm@ni.com \
    --cc=michals@xilinx.com \
    --cc=nathan.sullivan@ni.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;
as well as URLs for NNTP newsgroup(s).