]> 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)
commit2b65a0968d6553e059f48472e4c8921f5c01c4c8
tree177904b28b8293e6da79f5cca5551893c7c0a24d
parent88337079d1909c9393002d8ed0bb1228896aedb9
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: f6dd0f68dc54 ("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