cxgbe: use trylock in Tx callback instead of spinning for a lock
authorRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Fri, 20 Nov 2015 13:13:38 +0000 (18:43 +0530)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 24 Nov 2015 13:56:27 +0000 (14:56 +0100)
commit334505bad2bbee80026dff84b6984df8b2780c3d
treedd6f5b4d92d4b29ad7bb8047ae7d06d8056e05a2
parentca0481dadec5998704b11f14f89afcc1db30c67f
cxgbe: use trylock in Tx callback instead of spinning for a lock

CXGBE PMD depends on an alarm to periodically transmit any pending
coalesced packets and hence spins for a lock for each tx queue in the
alarm callback.

A better solution is to try to get a lock whenever possible, instead
of spinning for it.

Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Signed-off-by: Kumar Sanghvi <kumaras@chelsio.com>
drivers/net/cxgbe/base/adapter.h
drivers/net/cxgbe/sge.c