On Mon, Oct 14, 2019 at 12:25:17PM +0300, Ioana Ciornei wrote:
> From: Ioana Radulescu <[email protected]>
>
> Depending on when MC connects the DPNI to a MAC, Tx FQIDs may
> not be available during probe time.
>
> Read the FQIDs each time the link goes up to avoid using invalid
> values. In case an error occurs or an invalid value is retrieved,
> fall back to QDID-based enqueueing.
>
> Fixes: 1fa0f68c9255 ("dpaa2-eth: Use FQ-based DPIO enqueue API")
> Signed-off-by: Ioana Radulescu <[email protected]>
> Signed-off-by: Ioana Ciornei <[email protected]>
> ---
> Changes in v2:
> - used reverse christmas tree ordering in update_tx_fqids
>
> drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c | 42
> ++++++++++++++++++++++++
> 1 file changed, 42 insertions(+)
>
> diff --git a/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
> b/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
> index 5acd734a216b..c3c2c06195ae 100644
> --- a/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
> +++ b/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
> @@ -1235,6 +1235,8 @@ static void dpaa2_eth_set_rx_taildrop(struct
> dpaa2_eth_priv *priv, bool enable)
> priv->rx_td_enabled = enable;
> }
>
> +static void update_tx_fqids(struct dpaa2_eth_priv *priv);
> +
Hi Ioana and Ioana
Using forward declarations is generally not liked. Is there something
which is preventing you from having it earlier in the file?
Thanks
Andrew