liquidio: avoid doing useless work
authorPrasad Kanneganti <prasad.kanneganti@cavium.com>
Thu, 8 Mar 2018 06:23:32 +0000 (22:23 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Mar 2018 02:46:12 +0000 (21:46 -0500)
commitcecd8d81ac5a7551d70c331b7f4ef7eb2609f336
treed4560584165e1a6b616475c5524183928e6f2af6
parentfcbedd0f29692c0aea3a32d41c8739de7420f140
liquidio: avoid doing useless work

Avoid doing useless work by making sure that the response_list is not empty
before scheduling work to process it.

Signed-off-by: Prasad Kanneganti <prasad.kanneganti@cavium.com>
Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/request_manager.c
drivers/net/ethernet/cavium/liquidio/response_manager.c