From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754069AbdDKItF (ORCPT ); Tue, 11 Apr 2017 04:49:05 -0400 Received: from smtprelay.synopsys.com ([198.182.60.111]:54897 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751255AbdDKItC (ORCPT ); Tue, 11 Apr 2017 04:49:02 -0400 Subject: Re: [PATCH net-next] net: stmmac: set total length of the packet to be transmitted in TDES3 To: Niklas Cassel , , , References: <20170410183329.28847-1-niklass@axis.com> CC: , , Niklas Cassel From: Joao Pinto Message-ID: <8e26bc0b-62eb-da22-8144-7cae2efe8095@synopsys.com> Date: Tue, 11 Apr 2017 09:48:57 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170410183329.28847-1-niklass@axis.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.107.19.129] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Niklas, Ās 7:33 PM de 4/10/2017, Niklas Cassel escreveu: > From: Niklas Cassel > > Field FL/TPL in register TDES3 is not correctly set on GMAC4. > TX appears to be functional on GMAC 4.10a even if this field is not set, > however, to avoid relying on undefined behavior, set the length in TDES3. > > The field has a different meaning depending on if the TSE bit in TDES3 > is set or not (TSO). However, regardless of the TSE bit, the field is > not optional. The field is already set correctly when the TSE bit is set. > > Since there is no limit for the number of descriptors that can be > used for a single packet, the field should be set to the sum of > the buffers contained in: > [ ... ... > ], which should be equal to skb->len. > > Signed-off-by: Niklas Cassel Sounds fine to me. Did you check for performance improvement? Thanks. Joao