[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2e8da660-36d9-7aa0-bf66-86644eaf715b@microchip.com>
Date: Mon, 4 Jun 2018 17:06:58 +0200
From: Nicolas Ferre <nicolas.ferre@...rochip.com>
To: Jennifer Dahm <jennifer.dahm@...com>, <netdev@...r.kernel.org>,
"David S . Miller" <davem@...emloft.net>,
Michal Simek <michals@...inx.com>,
Harini Katakam <harini.katakam@...inx.com>
CC: Nathan Sullivan <nathan.sullivan@...com>
Subject: Re: [RFC PATCH 2/2] net: macb: Disable TX checksum offloading on all
Zynq
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@...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
Powered by blists - more mailing lists