diff options
Diffstat (limited to 'drivers/net/s2io.h')
-rw-r--r-- | drivers/net/s2io.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/drivers/net/s2io.h b/drivers/net/s2io.h index b924ef21814a..df8cfd0475be 100644 --- a/drivers/net/s2io.h +++ b/drivers/net/s2io.h | |||
@@ -201,6 +201,67 @@ typedef struct stat_block { | |||
201 | u32 rxf_wr_cnt; | 201 | u32 rxf_wr_cnt; |
202 | u32 txf_rd_cnt; | 202 | u32 txf_rd_cnt; |
203 | 203 | ||
204 | /* Tx MAC statistics overflow counters. */ | ||
205 | u32 tmac_data_octets_oflow; | ||
206 | u32 tmac_frms_oflow; | ||
207 | u32 tmac_bcst_frms_oflow; | ||
208 | u32 tmac_mcst_frms_oflow; | ||
209 | u32 tmac_ucst_frms_oflow; | ||
210 | u32 tmac_ttl_octets_oflow; | ||
211 | u32 tmac_any_err_frms_oflow; | ||
212 | u32 tmac_nucst_frms_oflow; | ||
213 | u64 tmac_vlan_frms; | ||
214 | u32 tmac_drop_ip_oflow; | ||
215 | u32 tmac_vld_ip_oflow; | ||
216 | u32 tmac_rst_tcp_oflow; | ||
217 | u32 tmac_icmp_oflow; | ||
218 | u32 tpa_unknown_protocol; | ||
219 | u32 tmac_udp_oflow; | ||
220 | u32 reserved_10; | ||
221 | u32 tpa_parse_failure; | ||
222 | |||
223 | /* Rx MAC Statistics overflow counters. */ | ||
224 | u32 rmac_data_octets_oflow; | ||
225 | u32 rmac_vld_frms_oflow; | ||
226 | u32 rmac_vld_bcst_frms_oflow; | ||
227 | u32 rmac_vld_mcst_frms_oflow; | ||
228 | u32 rmac_accepted_ucst_frms_oflow; | ||
229 | u32 rmac_ttl_octets_oflow; | ||
230 | u32 rmac_discarded_frms_oflow; | ||
231 | u32 rmac_accepted_nucst_frms_oflow; | ||
232 | u32 rmac_usized_frms_oflow; | ||
233 | u32 rmac_drop_events_oflow; | ||
234 | u32 rmac_frag_frms_oflow; | ||
235 | u32 rmac_osized_frms_oflow; | ||
236 | u32 rmac_ip_oflow; | ||
237 | u32 rmac_jabber_frms_oflow; | ||
238 | u32 rmac_icmp_oflow; | ||
239 | u32 rmac_drop_ip_oflow; | ||
240 | u32 rmac_err_drp_udp_oflow; | ||
241 | u32 rmac_udp_oflow; | ||
242 | u32 reserved_11; | ||
243 | u32 rmac_pause_cnt_oflow; | ||
244 | u64 rmac_ttl_1519_4095_frms; | ||
245 | u64 rmac_ttl_4096_8191_frms; | ||
246 | u64 rmac_ttl_8192_max_frms; | ||
247 | u64 rmac_ttl_gt_max_frms; | ||
248 | u64 rmac_osized_alt_frms; | ||
249 | u64 rmac_jabber_alt_frms; | ||
250 | u64 rmac_gt_max_alt_frms; | ||
251 | u64 rmac_vlan_frms; | ||
252 | u32 rmac_len_discard; | ||
253 | u32 rmac_fcs_discard; | ||
254 | u32 rmac_pf_discard; | ||
255 | u32 rmac_da_discard; | ||
256 | u32 rmac_red_discard; | ||
257 | u32 rmac_rts_discard; | ||
258 | u32 reserved_12; | ||
259 | u32 rmac_ingm_full_discard; | ||
260 | u32 reserved_13; | ||
261 | u32 rmac_accepted_ip_oflow; | ||
262 | u32 reserved_14; | ||
263 | u32 link_fault_cnt; | ||
264 | |||
204 | /* Software statistics maintained by driver */ | 265 | /* Software statistics maintained by driver */ |
205 | swStat_t sw_stat; | 266 | swStat_t sw_stat; |
206 | } StatInfo_t; | 267 | } StatInfo_t; |
@@ -690,6 +751,9 @@ struct s2io_nic { | |||
690 | atomic_t card_state; | 751 | atomic_t card_state; |
691 | volatile unsigned long link_state; | 752 | volatile unsigned long link_state; |
692 | struct vlan_group *vlgrp; | 753 | struct vlan_group *vlgrp; |
754 | #define XFRAME_I_DEVICE 1 | ||
755 | #define XFRAME_II_DEVICE 2 | ||
756 | u8 device_type; | ||
693 | 757 | ||
694 | spinlock_t rx_lock; | 758 | spinlock_t rx_lock; |
695 | atomic_t isr_cnt; | 759 | atomic_t isr_cnt; |