]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf5c1237ffcf221ab6dbf12be3c17fdc6b72521c1
tree177904b28b8293e6da79f5cca5551893c7c0a24d
parent1806dd63cf0e1e16a8766d3a28b69815a082cf0d
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: f1fc3833f608 ("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