OSDN Git Service

net: mana: Configure hwc timeout from hardware
authorSouradeep Chakrabarti <schakrabarti@linux.microsoft.com>
Wed, 2 Aug 2023 11:07:40 +0000 (04:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Aug 2023 08:02:55 +0000 (09:02 +0100)
commit62c1bff593b7e30041d0273b835af9fd6f5ee737
tree2f42ecac47e79f1887b6a30a112064ba6cfa2a41
parent58e701264f15a8984136f4997faf99cb22b121f3
net: mana: Configure hwc timeout from hardware

At present hwc timeout value is a fixed value. This patch sets the hwc
timeout from the hardware. It now uses a new hardware capability
GDMA_DRV_CAP_FLAG_1_HWC_TIMEOUT_RECONFIG to query and set the value
in hwc_timeout.

Signed-off-by: Souradeep Chakrabarti <schakrabarti@linux.microsoft.com>
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microsoft/mana/gdma_main.c
drivers/net/ethernet/microsoft/mana/hw_channel.c
include/net/mana/gdma.h
include/net/mana/hw_channel.h