diff options
author | Lendacky, Thomas <Thomas.Lendacky@amd.com> | 2014-08-29 22:16:50 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-02 07:38:14 +0400 |
commit | a9a4a2d9d622e3bde41356aa4e2694cee052d002 (patch) | |
tree | a7b206d5ac94abaf19044a20c24333902cdc2186 /drivers/net/ethernet/amd/xgbe/xgbe.h | |
parent | e148e1bf6fcdecb19015c63ba8c6c25ed5dc3a2a (diff) | |
download | linux-a9a4a2d9d622e3bde41356aa4e2694cee052d002.tar.xz |
amd-xgbe: Check for Tx hardware queue flushing support
The flushing of the Tx hardware queues is only supported at a certain
level of the hardware. Retrieve the current version of the hardware
and use that to determine if flushing is supported.
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/amd/xgbe/xgbe.h')
-rw-r--r-- | drivers/net/ethernet/amd/xgbe/xgbe.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/amd/xgbe/xgbe.h b/drivers/net/ethernet/amd/xgbe/xgbe.h index 07bf70a82908..5af5c38eef4b 100644 --- a/drivers/net/ethernet/amd/xgbe/xgbe.h +++ b/drivers/net/ethernet/amd/xgbe/xgbe.h @@ -526,6 +526,9 @@ struct xgbe_desc_if { * or configurations are present in the device. */ struct xgbe_hw_features { + /* HW Version */ + unsigned int version; + /* HW Feature Register0 */ unsigned int gmii; /* 1000 Mbps support */ unsigned int vlhash; /* VLAN Hash Filter */ |