diff options
author | Ioana Radulescu <ruxandra.radulescu@nxp.com> | 2017-10-11 08:29:46 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-10-18 16:45:18 +0200 |
commit | 8658094a22987086a307cfb1fdf9c66d137b8fe3 (patch) | |
tree | 118a3a2b24b338adb0c5b4d6628447b2ef25deb7 | |
parent | b63baf7137688ff7989829137dab8fd548fa9399 (diff) | |
download | op-kernel-dev-8658094a22987086a307cfb1fdf9c66d137b8fe3.zip op-kernel-dev-8658094a22987086a307cfb1fdf9c66d137b8fe3.tar.gz |
staging: fsl-dpaa2/eth: Check if notification rearm is successful
In case dpaa2_io_service_rearm() fails with an error other then
EBUSY, it will do so silently; add a check for this and a warning
message, as a failure here means we're unable to receive any
more traffic on the current cpu.
Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c index 6f009d1..f390de6 100644 --- a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c +++ b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c @@ -955,6 +955,8 @@ static int dpaa2_eth_poll(struct napi_struct *napi, int budget) err = dpaa2_io_service_rearm(NULL, &ch->nctx); cpu_relax(); } while (err == -EBUSY); + WARN_ONCE(err, "CDAN notifications rearm failed on core %d", + ch->nctx.desired_cpu); } ch->stats.frames += cleaned; |