[PATCH] net: ethernet: mtk-star-emac: return ok when xmit drops

2020-11-12 Thread Vincent Stehlé
The ndo_start_xmit() method must return NETDEV_TX_OK if the DMA mapping fails, after freeing the socket buffer. Fix the mtk_star_netdev_start_xmit() function accordingly. Fixes: 8c7bd5a454ff ("net: ethernet: mtk-star-emac: new driver") Signed-off-by: Vincent Stehlé Cc: David S. Miller Cc: Bartos

Re: [PATCH] net: ethernet: mtk-star-emac: return ok when xmit drops

2020-11-12 Thread Bartosz Golaszewski
On Thu, Nov 12, 2020 at 12:35 PM Vincent Stehlé wrote: > > The ndo_start_xmit() method must return NETDEV_TX_OK if the DMA mapping > fails, after freeing the socket buffer. > Fix the mtk_star_netdev_start_xmit() function accordingly. > > Fixes: 8c7bd5a454ff ("net: ethernet: mtk-star-emac: new driv