]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita633c0e5fcaad7a6efc6d3302c2cf8d771d78aa9
treed4560584165e1a6b616475c5524183928e6f2af6
parent4f15379e6e8698b5a52ea983988846d2b3b5b6f5
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