diff options
author | Ioana Ciornei <ioana.ciornei@nxp.com> | 2021-01-08 11:07:23 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-01-09 16:21:30 -0800 |
commit | d87e606373f641c58d5e8e4c48b3216fd9d1c78a (patch) | |
tree | 8a2cc01d7f822b2fb1025bbcca2bebe8b80b61b4 /drivers/net/phy/broadcom.c | |
parent | 095dca16d92f32150314ef47ea150ed83c5aacd9 (diff) |
dpaa2-mac: export MAC counters even when in TYPE_FIXED
If the network interface object is connected to a MAC of TYPE_FIXED, the
link status management is handled exclusively by the firmware. This does
not mean that the driver cannot access the MAC counters and export them
in ethtool.
For this to happen, we open the attached dpmac device and keep a pointer
to it in priv->mac. Because of this, all the checks in the driver of the
following form 'if (priv->mac)' have to be updated to actually check
the dpmac attribute and not rely on the presence of a non-NULL value.
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/phy/broadcom.c')
0 files changed, 0 insertions, 0 deletions