diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2022-03-03 16:01:25 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-03-04 09:21:23 +0000 |
commit | 5d3bb7dda43ad22a0caa78b0222beab0462a669e (patch) | |
tree | 3403402d1a9d32b7840e4b1740b34d307e7d7cdc /drivers/net/dsa/ocelot | |
parent | dbd032856ba39b6e90d525b7e6340d61a04fcc8f (diff) |
net: dsa: felix: print error message in felix_check_xtr_pkt()
Packet extraction failures over register-based MMIO are silent, and
difficult to pinpoint. Add an error message to remedy this.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/ocelot')
-rw-r--r-- | drivers/net/dsa/ocelot/felix.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/dsa/ocelot/felix.c b/drivers/net/dsa/ocelot/felix.c index e579ade86bfc..1e93126a913a 100644 --- a/drivers/net/dsa/ocelot/felix.c +++ b/drivers/net/dsa/ocelot/felix.c @@ -1506,8 +1506,12 @@ static bool felix_check_xtr_pkt(struct ocelot *ocelot) } out: - if (err < 0) + if (err < 0) { + dev_err_ratelimited(ocelot->dev, + "Error during packet extraction: %pe\n", + ERR_PTR(err)); ocelot_drain_cpu_queue(ocelot, 0); + } return true; } |