dpaa2-eth: Set congestion group before the Rx queues become operational
authorRadu Bulie <radu-andrei.bulie@nxp.com>
Fri, 30 Apr 2021 00:59:35 +0000 (03:59 +0300)
committerXiaobo Xie <xiaobo.xie@nxp.com>
Thu, 3 Jun 2021 04:10:20 +0000 (06:10 +0200)
commitcf8c29c14df7f7cacfe04b71e682cfe409f7ec22
tree8fff4d0d5a9da5c9d59a0ac45dc44b68150dea37
parent12853a2d942d2c0982f5ea4f17a0c59128a3a363
dpaa2-eth: Set congestion group before the Rx queues become operational

Setting  the CGID for the first time or dynamically changing it
with a different one  on a FQ that has been in service (has frames in it)
is not supported, the byte/frame counts in both the old and new CGRs may be
corrupted if this is done.

This patch adds the configuration of the CGR(congestion group record)
for the network interface RX queues, in the probe function before the queues
become operational,  to prevent the corruption of the aforementioned counter.

Signed-off-by: Radu Bulie <radu-andrei.bulie@nxp.com>
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c