]> git.baikalelectronics.ru Git - kernel.git/commit
net: macb: Only disable NAPI on the actual error path
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Mon, 15 Jun 2020 13:18:54 +0000 (14:18 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Jun 2020 20:10:34 +0000 (13:10 -0700)
commite9c553ac0d11eb697f6f4b6c3642b00a089707ce
treea3a96e28c186314ff7db97a346b6252345e90fae
parentb77fe5eb354d97a876a44ee218b9c0217a3ddda9
net: macb: Only disable NAPI on the actual error path

A recent change added a disable to NAPI into macb_open, this was
intended to only happen on the error path but accidentally applies
to all paths. This causes NAPI to be disabled on the success path, which
leads to the network to no longer functioning.

Fixes: 61fcc6621f98 ("net: cadence: macb: disable NAPI on error")
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Tested-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb_main.c