From: Ioana Radulescu Date: Wed, 11 Oct 2017 13:29:46 +0000 (-0500) Subject: staging: fsl-dpaa2/eth: Check if notification rearm is successful X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=8658094a22987086a307cfb1fdf9c66d137b8fe3;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c index 6f009d1e3a84..f390de642222 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;