net: ethernet: ti: davinci_emac: switch to use skb_put_padto()
authorGrygorii Strashko <grygorii.strashko@ti.com>
Thu, 5 Aug 2021 14:55:54 +0000 (17:55 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Aug 2021 09:26:46 +0000 (10:26 +0100)
commit61e7a22da75b5ca97e89f6a935352e6528342b99
treef9e4500bdc4cc0cab81b75cd2a3c0fc762281e3d
parent1f88d5d566b8be60ce8f8b53132a706fe3184e9e
net: ethernet: ti: davinci_emac: switch to use skb_put_padto()

Use skb_put_padto() instead of skb_padto() so skb->len also got updated, as
preparation for further removing frame padding from cpdma.
It also makes xmit path more clear and linear.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/davinci_emac.c