aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/aquantia/atlantic/aq_hw.h
diff options
context:
space:
mode:
authorAnton Mikaev <amikaev@aquantia.com>2018-07-02 17:03:35 +0300
committerDavid S. Miller <davem@davemloft.net>2018-07-03 23:23:48 +0900
commitc1af5427954b6a7f8c34b9778b1e1c9f1d9af302 (patch)
treecdb7dbad147624f0a9ca42a6ec7f80fef5e6252b /drivers/net/ethernet/aquantia/atlantic/aq_hw.h
parentnet: stmmac_tc: use 64-bit arithmetic instead of 32-bit (diff)
downloadlinux-dev-c1af5427954b6a7f8c34b9778b1e1c9f1d9af302.tar.xz
linux-dev-c1af5427954b6a7f8c34b9778b1e1c9f1d9af302.zip
net: aquantia: Ethtool based ring size configuration
Implemented ring size setup, min/max validation and reconfiguration in runtime. Signed-off-by: Anton Mikaev <amikaev@aquantia.com> Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/aquantia/atlantic/aq_hw.h')
-rw-r--r--drivers/net/ethernet/aquantia/atlantic/aq_hw.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/net/ethernet/aquantia/atlantic/aq_hw.h b/drivers/net/ethernet/aquantia/atlantic/aq_hw.h
index a2d416b24ffc..904cdfd74cd7 100644
--- a/drivers/net/ethernet/aquantia/atlantic/aq_hw.h
+++ b/drivers/net/ethernet/aquantia/atlantic/aq_hw.h
@@ -24,8 +24,10 @@ struct aq_hw_caps_s {
u64 link_speed_msk;
unsigned int hw_priv_flags;
u32 media_type;
- u32 rxds;
- u32 txds;
+ u32 rxds_max;
+ u32 txds_max;
+ u32 rxds_min;
+ u32 txds_min;
u32 txhwb_alignment;
u32 irq_mask;
u32 vecs;
@@ -98,6 +100,9 @@ struct aq_stats_s {
#define AQ_HW_MEDIA_TYPE_TP 1U
#define AQ_HW_MEDIA_TYPE_FIBRE 2U
+#define AQ_HW_TXD_MULTIPLE 8U
+#define AQ_HW_RXD_MULTIPLE 8U
+
struct aq_hw_s {
atomic_t flags;
u8 rbl_enabled:1;