liquidio: avoided acquiring post_lock for data only queues
authorIntiyaz Basha <intiyaz.basha@cavium.com>
Mon, 6 Aug 2018 20:09:40 +0000 (13:09 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Aug 2018 19:40:43 +0000 (12:40 -0700)
commit7395a8845588ebdf170f4d3796d44142458741be
treef92289b7d87aa966e7b5ddf4979a9155c3ef0819
parent3789cabaab1a939eb56edd76bbde2c2e49f081da
liquidio: avoided acquiring post_lock for data only queues

All control commands (soft commands) goes through only Queue 0
(control and data queue). So only queue-0 needs post_lock,
other queues are only data queues and does not need post_lock

Added a flag to indicate the queue can be used for soft commands.

If this flag is set, post_lock must be acquired before posting
a command to the queue.
If this flag is clear, post_lock is invalid for the queue.

Signed-off-by: Intiyaz Basha <intiyaz.basha@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/octeon_iq.h
drivers/net/ethernet/cavium/liquidio/request_manager.c