dpaa2-eth: Fix TX FQID values
authorIoana Radulescu <ruxandra.radulescu@nxp.com>
Wed, 16 Oct 2019 07:36:23 +0000 (10:36 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Oct 2019 19:27:29 +0000 (15:27 -0400)
commita690af4f16f9bd1f976a4257e1529b6323a8d0e1
tree177904b28b8293e6da79f5cca5551893c7c0a24d
parent8398b375a9e3f5e4bba9bcdfed152a8a247dee01
dpaa2-eth: Fix TX FQID values

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 <ruxandra.radulescu@nxp.com>
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c