diff options
author | Alexander Duyck <alexander.h.duyck@intel.com> | 2008-11-21 00:10:23 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-21 00:10:23 -0500 |
commit | 859ee3c43812051e21816c6d6d4cc04fb7ce9b2e (patch) | |
tree | ef3c3717038b5d4600065550f422fd8abf72de35 /drivers/net/ixgbe/ixgbe_dcb.h | |
parent | 0eb3aa9bab20217fb42244ccdcb5bf8a002f504c (diff) |
DCB: Add support for DCB BCN
Adds an interface to configure the Backward Congestion Notification
(BCN) feature. In a BCN capabale network, congestion notifications
from congested points out in the network can cause the end station
limit the rate of a given traffic flow.
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ixgbe/ixgbe_dcb.h')
-rw-r--r-- | drivers/net/ixgbe/ixgbe_dcb.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/drivers/net/ixgbe/ixgbe_dcb.h b/drivers/net/ixgbe/ixgbe_dcb.h index 62dfd243bedc..75f6efe1e369 100644 --- a/drivers/net/ixgbe/ixgbe_dcb.h +++ b/drivers/net/ixgbe/ixgbe_dcb.h | |||
@@ -108,7 +108,34 @@ enum dcb_rx_pba_cfg { | |||
108 | pba_80_48 /* PBA[0-3] each use 80KB, PBA[4-7] each use 48KB */ | 108 | pba_80_48 /* PBA[0-3] each use 80KB, PBA[4-7] each use 48KB */ |
109 | }; | 109 | }; |
110 | 110 | ||
111 | /* | ||
112 | * This structure contains many values encoded as fixed-point | ||
113 | * numbers, meaning that some of bits are dedicated to the | ||
114 | * magnitude and others to the fraction part. In the comments | ||
115 | * this is shown as f=n, where n is the number of fraction bits. | ||
116 | * These fraction bits are always the low-order bits. The size | ||
117 | * of the magnitude is not specified. | ||
118 | */ | ||
119 | struct bcn_config { | ||
120 | u32 rp_admin_mode[MAX_TRAFFIC_CLASS]; /* BCN enabled, per TC */ | ||
121 | u32 bcna_option[2]; /* BCNA Port + MAC Addr */ | ||
122 | u32 rp_w; /* Derivative Weight, f=3 */ | ||
123 | u32 rp_gi; /* Increase Gain, f=12 */ | ||
124 | u32 rp_gd; /* Decrease Gain, f=12 */ | ||
125 | u32 rp_ru; /* Rate Unit */ | ||
126 | u32 rp_alpha; /* Max Decrease Factor, f=12 */ | ||
127 | u32 rp_beta; /* Max Increase Factor, f=12 */ | ||
128 | u32 rp_ri; /* Initial Rate */ | ||
129 | u32 rp_td; /* Drift Interval Timer */ | ||
130 | u32 rp_rd; /* Drift Increase */ | ||
131 | u32 rp_tmax; /* Severe Congestion Backoff Timer Range */ | ||
132 | u32 rp_rmin; /* Severe Congestion Restart Rate */ | ||
133 | u32 rp_wrtt; /* RTT Moving Average Weight */ | ||
134 | }; | ||
135 | |||
111 | struct ixgbe_dcb_config { | 136 | struct ixgbe_dcb_config { |
137 | struct bcn_config bcn; | ||
138 | |||
112 | struct tc_configuration tc_config[MAX_TRAFFIC_CLASS]; | 139 | struct tc_configuration tc_config[MAX_TRAFFIC_CLASS]; |
113 | u8 bw_percentage[2][MAX_BW_GROUP]; /* One each for Tx/Rx */ | 140 | u8 bw_percentage[2][MAX_BW_GROUP]; /* One each for Tx/Rx */ |
114 | 141 | ||