File tree Expand file tree Collapse file tree 3 files changed +19
-1
lines changed
drivers/net/ethernet/emulex/benet Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -325,6 +325,11 @@ struct be_drv_stats {
325
325
u32 rx_input_fifo_overflow_drop ;
326
326
u32 pmem_fifo_overflow_drop ;
327
327
u32 jabber_events ;
328
+ u32 rx_roce_bytes_lsd ;
329
+ u32 rx_roce_bytes_msd ;
330
+ u32 rx_roce_frames ;
331
+ u32 roce_drops_payload_len ;
332
+ u32 roce_drops_crc ;
328
333
};
329
334
330
335
struct be_vf_cfg {
Original file line number Diff line number Diff line change @@ -116,7 +116,12 @@ static const struct be_ethtool_stat et_stats[] = {
116
116
{DRVSTAT_INFO (rx_drops_mtu )},
117
117
/* Number of packets dropped due to random early drop function */
118
118
{DRVSTAT_INFO (eth_red_drops )},
119
- {DRVSTAT_INFO (be_on_die_temperature )}
119
+ {DRVSTAT_INFO (be_on_die_temperature )},
120
+ {DRVSTAT_INFO (rx_roce_bytes_lsd )},
121
+ {DRVSTAT_INFO (rx_roce_bytes_msd )},
122
+ {DRVSTAT_INFO (rx_roce_frames )},
123
+ {DRVSTAT_INFO (roce_drops_payload_len )},
124
+ {DRVSTAT_INFO (roce_drops_crc )}
120
125
};
121
126
#define ETHTOOL_STATS_NUM ARRAY_SIZE(et_stats)
122
127
Original file line number Diff line number Diff line change @@ -474,6 +474,14 @@ static void populate_be_v2_stats(struct be_adapter *adapter)
474
474
drvs -> rx_drops_no_tpre_descr = rxf_stats -> rx_drops_no_tpre_descr ;
475
475
drvs -> rx_drops_too_many_frags = rxf_stats -> rx_drops_too_many_frags ;
476
476
adapter -> drv_stats .eth_red_drops = pmem_sts -> eth_red_drops ;
477
+ if (be_roce_supported (adapter )) {
478
+ drvs -> rx_roce_bytes_lsd = port_stats -> roce_bytes_received_lsd ;
479
+ drvs -> rx_roce_bytes_msd = port_stats -> roce_bytes_received_msd ;
480
+ drvs -> rx_roce_frames = port_stats -> roce_frames_received ;
481
+ drvs -> roce_drops_crc = port_stats -> roce_drops_crc ;
482
+ drvs -> roce_drops_payload_len =
483
+ port_stats -> roce_drops_payload_len ;
484
+ }
477
485
}
478
486
479
487
static void populate_lancer_stats (struct be_adapter * adapter )
You can’t perform that action at this time.
0 commit comments