From: Benjamin Herrenschmidt <[email protected]>
Date: Fri,  7 Apr 2017 13:30:55 +1000

> Move it below ftgmac100_xmit() and the rest of the tx path
> 
> No code change.
> 
> Signed-off-by: Benjamin Herrenschmidt <[email protected]>
> ---
>  drivers/net/ethernet/faraday/ftgmac100.c | 59 
> ++++++++++++++++----------------
>  1 file changed, 30 insertions(+), 29 deletions(-)
> 
> diff --git a/drivers/net/ethernet/faraday/ftgmac100.c 
> b/drivers/net/ethernet/faraday/ftgmac100.c
> index f4b719214..3966c7a 100644
> --- a/drivers/net/ethernet/faraday/ftgmac100.c
> +++ b/drivers/net/ethernet/faraday/ftgmac100.c
> @@ -63,6 +63,7 @@ struct ftgmac100 {
>       u32 rxdes0_edorr_mask;
>  
>       /* Tx ring */
> +     struct sk_buff *tx_skbs[TX_QUEUE_ENTRIES];
>       unsigned int tx_clean_pointer;
>       unsigned int tx_pointer;
>       unsigned int tx_pending;

Add this only in patch #6 or wherever it is that you start using it, not
this patch

Thanks.

Reply via email to