Re: [PATCH 05/12] ftgmac100: Pad small frames properly

2017-04-07 Thread Benjamin Herrenschmidt
On Fri, 2017-04-07 at 06:05 -0700, Florian Fainelli wrote: > You may want to use skb_put_padto() which also takes care of bumping > skb->len accordingly, in case that makes a difference for the > ftgmac100 hardware. Subsequent patch adds fragments, so it needs to bump headlen. I'll have a look

Re: [PATCH 05/12] ftgmac100: Pad small frames properly

2017-04-07 Thread Florian Fainelli
On 04/06/2017 08:30 PM, Benjamin Herrenschmidt wrote: > Rather than just transmitting garbage past the end of the small > packet. > > Signed-off-by: Benjamin Herrenschmidt > --- > drivers/net/ethernet/faraday/ftgmac100.c | 7 +++ > 1 file changed, 7 insertions(+)

[PATCH 05/12] ftgmac100: Pad small frames properly

2017-04-06 Thread Benjamin Herrenschmidt
Rather than just transmitting garbage past the end of the small packet. Signed-off-by: Benjamin Herrenschmidt --- drivers/net/ethernet/faraday/ftgmac100.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/ethernet/faraday/ftgmac100.c