nic_rx_stats
struct nic_rx_stats *rsp_rstats = &resp->stats.fromwire;
struct nic_rx_stats *rstats = &oct_dev->link_stats.fromwire;
struct nic_rx_stats fromwire;
struct hinic_rxq_stats *nic_rx_stats,
gather_rx_stats(nic_rx_stats, &nic_dev->rxqs[i]);
static void gather_rx_stats(struct hinic_rxq_stats *nic_rx_stats, struct hinic_rxq *rxq)
struct hinic_rxq_stats nic_rx_stats = {};
gather_nic_stats(nic_dev, &nic_rx_stats, &nic_tx_stats);
stats->rx_bytes = nic_rx_stats.bytes;
stats->rx_packets = nic_rx_stats.pkts;
stats->rx_errors = nic_rx_stats.errors;
nic_rx_stats->bytes += rx_stats.bytes;
nic_rx_stats->pkts += rx_stats.pkts;
nic_rx_stats->errors += rx_stats.errors;
nic_rx_stats->csum_errors += rx_stats.csum_errors;
nic_rx_stats->other_errors += rx_stats.other_errors;