]> git.itanic.dy.fi Git - linux-stable/commit
ibmvnic: remove duplicate napi_schedule call in do_reset function
authorLijun Pan <lijunp213@gmail.com>
Wed, 14 Apr 2021 07:46:15 +0000 (02:46 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Apr 2021 11:16:51 +0000 (13:16 +0200)
commit555cf23d1df21f0d413b62a1e9e0382e46d89afe
treeb1d6fbc6d94299bb643862ee688c8115307b4561
parent2601cdb11d0f96668c850bc42677c3cc590681bf
ibmvnic: remove duplicate napi_schedule call in do_reset function

commit d3a6abccbd272aea7dc2c6f984bb5a2c11278e44 upstream.

During adapter reset, do_reset/do_hard_reset calls ibmvnic_open(),
which will calls napi_schedule if previous state is VNIC_CLOSED
(i.e, the reset case, and "ifconfig down" case). So there is no need
for do_reset to call napi_schedule again at the end of the function
though napi_schedule will neglect the request if napi is already
scheduled.

Fixes: ed651a10875f ("ibmvnic: Updated reset handling")
Signed-off-by: Lijun Pan <lijunp213@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/ibm/ibmvnic.c