]> git.baikalelectronics.ru Git - kernel.git/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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Apr 2021 20:10:58 +0000 (13:10 -0700)
commita857385e63ef7ae0d17ddeb70637cb5723158df4
treea6e673e81e72c513c1acb9aff8394c9eb8b58808
parentf3656474ac4580bc317becc3a1711e3544c019e7
ibmvnic: remove duplicate napi_schedule call in do_reset function

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: 64813b44e233 ("ibmvnic: Updated reset handling")
Signed-off-by: Lijun Pan <lijunp213@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c