Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1621033

Re: [PATCH net-next] net: stmmac: set total length of the packet to be transmitted in TDES3

From Joao Pinto <Joao.Pinto@synopsys.com>
Newsgroups linux.kernel
Subject Re: [PATCH net-next] net: stmmac: set total length of the packet to be transmitted in TDES3
Date 2017-04-11 10:50 +0200
Message-ID <tuZER-4BD-5@gated-at.bofh.it> (permalink)
References <tuMoi-4s3-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Niklas,

Às 7:33 PM de 4/10/2017, Niklas Cassel escreveu:
> From: Niklas Cassel <niklas.cassel@axis.com>
> 
> 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:
> [<desc with First Descriptor bit set> ... <desc n> ...
> <desc with Last Descriptor bit set>], which should be equal to skb->len.
> 
> Signed-off-by: Niklas Cassel <niklas.cassel@axis.com>

Sounds fine to me. Did you check for performance improvement? Thanks.

Joao

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH net-next] net: stmmac: set total length of the packet to be transmitted in TDES3 Niklas Cassel <niklas.cassel@axis.com> - 2017-04-10 20:40 +0200
  Re: [PATCH net-next] net: stmmac: set total length of the packet to  be transmitted in TDES3 Giuseppe CAVALLARO <peppe.cavallaro@st.com> - 2017-04-11 07:50 +0200
    Re: [PATCH net-next] net: stmmac: set total length of the packet to  be transmitted in TDES3 Alexandre Torgue <alexandre.torgue@st.com> - 2017-04-11 09:30 +0200
  Re: [PATCH net-next] net: stmmac: set total length of the packet to  be transmitted in TDES3 Joao Pinto <Joao.Pinto@synopsys.com> - 2017-04-11 10:50 +0200
    Re: [PATCH net-next] net: stmmac: set total length of the packet to  be transmitted in TDES3 Niklas Cassel <niklas.cassel@axis.com> - 2017-04-11 11:20 +0200
  Re: [PATCH net-next] net: stmmac: set total length of the packet to  be transmitted in TDES3 Giuseppe CAVALLARO <peppe.cavallaro@st.com> - 2017-04-11 14:50 +0200
  Re: [PATCH net-next] net: stmmac: set total length of the packet  to be transmitted in TDES3 David Miller <davem@davemloft.net> - 2017-04-13 18:50 +0200

csiph-web