Re: [PATCH net-next 3/9] net: r6040: Utilize skb_put_padto()

2016-07-05 Thread Francois Romieu
Florian Fainelli : [...] > diff --git a/drivers/net/ethernet/rdc/r6040.c > b/drivers/net/ethernet/rdc/r6040.c > index 75776eee36f9..46ed093348da 100644 > --- a/drivers/net/ethernet/rdc/r6040.c > +++ b/drivers/net/ethernet/rdc/r6040.c > @@ -815,6 +815,9 @@ static netdev_tx_t

[PATCH net-next 3/9] net: r6040: Utilize skb_put_padto()

2016-07-04 Thread Florian Fainelli
Pad the SKB to the minimum length of ETH_ZLEN by using skb_put_padto() and take this operation out of the critical section since there is no need to check any HW resources before doing that. Signed-off-by: Florian Fainelli --- drivers/net/ethernet/rdc/r6040.c | 9 -