rx_port_stats_ext
struct rx_port_stats_ext *rx_port_stats_ext;
(offsetof(struct rx_port_stats_ext, counter) / 8)
req.rx_stat_size = htole16(sizeof(struct rx_port_stats_ext));
u64 *rx_port_stats_ext = (u64 *)softc->hw_rx_port_stats_ext.idi_vaddr;
softc->rx_bytes_pri[i] = *(rx_port_stats_ext + n);
softc->rx_packets_pri[i] = *(rx_port_stats_ext + n);
&softc->rx_port_stats_ext->link_down_events, "Num times link states down");
&softc->rx_port_stats_ext->continuous_pause_events, "Num times pause events");
&softc->rx_port_stats_ext->resume_pause_events, "Num times pause events"
&softc->rx_port_stats_ext->continuous_roce_pause_events, "Num times roce"
&softc->rx_port_stats_ext->resume_roce_pause_events, "Num times roce pause"
&softc->rx_port_stats_ext->rx_bytes_cos0, "Received bytes count cos0");
&softc->rx_port_stats_ext->rx_packets_cos0, "Received packets count cos0");
&softc->rx_port_stats_ext->rx_bytes_cos1, "Received bytes count cos1");
&softc->rx_port_stats_ext->rx_packets_cos1, "Received packets count cos1");
&softc->rx_port_stats_ext->rx_bytes_cos2, "Received bytes count cos2");
&softc->rx_port_stats_ext->rx_packets_cos2, "Received packets count cos2");
&softc->rx_port_stats_ext->rx_bytes_cos3, "Received bytes count cos3");
&softc->rx_port_stats_ext->rx_packets_cos3, "Received packets count cos3");
&softc->rx_port_stats_ext->rx_bytes_cos4, "Received bytes count cos4");
&softc->rx_port_stats_ext->rx_packets_cos4, "Received packets count cos4");
&softc->rx_port_stats_ext->rx_bytes_cos5, "Received bytes count cos5");
&softc->rx_port_stats_ext->rx_packets_cos5, "Received packets count cos5");
&softc->rx_port_stats_ext->rx_bytes_cos6, "Received bytes count cos6");
&softc->rx_port_stats_ext->rx_packets_cos6, "Received packets count cos6");
&softc->rx_port_stats_ext->rx_bytes_cos7, "Received bytes count cos7");
&softc->rx_port_stats_ext->rx_packets_cos7, "Received packets count cos7");
&softc->rx_port_stats_ext->pfc_pri0_rx_duration_us, "Time duration in receiving"
&softc->rx_port_stats_ext->pfc_pri0_rx_transitions, "Num times rx transition"
&softc->rx_port_stats_ext->pfc_pri1_rx_duration_us, "Time duration in receiving"
&softc->rx_port_stats_ext->pfc_pri1_rx_transitions, "Num times rx transition"
&softc->rx_port_stats_ext->pfc_pri2_rx_duration_us, "Time duration in receiving"
&softc->rx_port_stats_ext->pfc_pri2_rx_transitions, "Num times rx transition"
&softc->rx_port_stats_ext->pfc_pri3_rx_duration_us, "Time duration in receiving"
&softc->rx_port_stats_ext->pfc_pri3_rx_transitions, "Num times rx transition"
&softc->rx_port_stats_ext->pfc_pri4_rx_duration_us, "Time duration in receiving"
&softc->rx_port_stats_ext->pfc_pri4_rx_transitions, "Num times rx transition"
&softc->rx_port_stats_ext->pfc_pri5_rx_duration_us, "Time duration in receiving"
&softc->rx_port_stats_ext->pfc_pri5_rx_transitions, "Num times rx transition"
&softc->rx_port_stats_ext->pfc_pri6_rx_duration_us, "Time duration in receiving"
&softc->rx_port_stats_ext->pfc_pri6_rx_transitions, "Num times rx transition"
&softc->rx_port_stats_ext->pfc_pri7_rx_duration_us, "Time duration in receiving"
&softc->rx_port_stats_ext->pfc_pri7_rx_transitions, "Num times rx transition"
&softc->rx_port_stats_ext->rx_bits, "total number of received bits");
&softc->rx_port_stats_ext->rx_buffer_passed_threshold, "num of events port"
&softc->rx_port_stats_ext->rx_pcs_symbol_err, "num of symbol errors wasn't"
&softc->rx_port_stats_ext->rx_corrected_bits, "num of bits corrected by FEC");
&softc->rx_port_stats_ext->rx_discard_bytes_cos0, "num of rx discard bytes"
&softc->rx_port_stats_ext->rx_discard_packets_cos0, "num of rx discard packets"
&softc->rx_port_stats_ext->rx_discard_bytes_cos1, "num of rx discard bytes"
&softc->rx_port_stats_ext->rx_discard_packets_cos1, "num of rx discard packets"
&softc->rx_port_stats_ext->rx_discard_bytes_cos2, "num of rx discard bytes"
&softc->rx_port_stats_ext->rx_discard_packets_cos2, "num of rx discard packets"
&softc->rx_port_stats_ext->rx_discard_bytes_cos3, "num of rx discard bytes"
&softc->rx_port_stats_ext->rx_discard_packets_cos3, "num of rx discard packets"
&softc->rx_port_stats_ext->rx_discard_bytes_cos4, "num of rx discard bytes"
&softc->rx_port_stats_ext->rx_discard_packets_cos4, "num of rx discard packets"
&softc->rx_port_stats_ext->rx_discard_bytes_cos5, "num of rx discard bytes"
&softc->rx_port_stats_ext->rx_discard_packets_cos5, "num of rx discard packets"
&softc->rx_port_stats_ext->rx_discard_bytes_cos6, "num of rx discard bytes"
&softc->rx_port_stats_ext->rx_discard_packets_cos6, "num of rx discard packets"
&softc->rx_port_stats_ext->rx_discard_bytes_cos7, "num of rx discard bytes"
&softc->rx_port_stats_ext->rx_discard_packets_cos7, "num of rx discard packets"
rc = iflib_dma_alloc(ctx, sizeof(struct rx_port_stats_ext),
softc->rx_port_stats_ext = (void *) softc->hw_rx_port_stats_ext.idi_vaddr;