GET_STAT
p->tx_pause += GET_STAT(TX_PORT_PAUSE);
p->tx_octets += GET_STAT(TX_PORT_BYTES);
p->tx_frames += GET_STAT(TX_PORT_FRAMES);
p->tx_bcast_frames += GET_STAT(TX_PORT_BCAST);
p->tx_mcast_frames += GET_STAT(TX_PORT_MCAST);
p->tx_ucast_frames += GET_STAT(TX_PORT_UCAST);
p->tx_error_frames += GET_STAT(TX_PORT_ERROR);
p->tx_frames_64 += GET_STAT(TX_PORT_64B);
p->tx_frames_65_127 += GET_STAT(TX_PORT_65B_127B);
p->tx_frames_128_255 += GET_STAT(TX_PORT_128B_255B);
p->tx_frames_256_511 += GET_STAT(TX_PORT_256B_511B);
p->tx_frames_512_1023 += GET_STAT(TX_PORT_512B_1023B);
p->tx_frames_1024_1518 += GET_STAT(TX_PORT_1024B_1518B);
p->tx_frames_1519_max += GET_STAT(TX_PORT_1519B_MAX);
p->tx_drop += GET_STAT(TX_PORT_DROP);
p->tx_ppp0 += GET_STAT(TX_PORT_PPP0);
p->tx_ppp1 += GET_STAT(TX_PORT_PPP1);
p->tx_ppp2 += GET_STAT(TX_PORT_PPP2);
p->tx_ppp3 += GET_STAT(TX_PORT_PPP3);
p->tx_ppp4 += GET_STAT(TX_PORT_PPP4);
p->tx_ppp5 += GET_STAT(TX_PORT_PPP5);
p->tx_ppp6 += GET_STAT(TX_PORT_PPP6);
p->tx_ppp7 += GET_STAT(TX_PORT_PPP7);
p->rx_pause += GET_STAT(RX_PORT_PAUSE);
p->rx_octets += GET_STAT(RX_PORT_BYTES);
p->rx_frames += GET_STAT(RX_PORT_FRAMES);
p->rx_bcast_frames += GET_STAT(RX_PORT_BCAST);
p->rx_mcast_frames += GET_STAT(RX_PORT_MCAST);
p->rx_ucast_frames += GET_STAT(RX_PORT_UCAST);
p->rx_too_long += GET_STAT(RX_PORT_MTU_ERROR);
p->rx_jabber += GET_STAT(RX_PORT_MTU_CRC_ERROR);
p->rx_len_err += GET_STAT(RX_PORT_LEN_ERROR);
p->rx_symbol_err += GET_STAT(RX_PORT_SYM_ERROR);
p->rx_runt += GET_STAT(RX_PORT_LESS_64B);
p->rx_frames_64 += GET_STAT(RX_PORT_64B);
p->rx_frames_65_127 += GET_STAT(RX_PORT_65B_127B);
p->rx_frames_128_255 += GET_STAT(RX_PORT_128B_255B);
p->rx_frames_256_511 += GET_STAT(RX_PORT_256B_511B);
p->rx_frames_512_1023 += GET_STAT(RX_PORT_512B_1023B);
p->rx_frames_1024_1518 += GET_STAT(RX_PORT_1024B_1518B);
p->rx_frames_1519_max += GET_STAT(RX_PORT_1519B_MAX);
p->rx_ppp0 += GET_STAT(RX_PORT_PPP0);
p->rx_ppp1 += GET_STAT(RX_PORT_PPP1);
p->rx_ppp2 += GET_STAT(RX_PORT_PPP2);
p->rx_ppp3 += GET_STAT(RX_PORT_PPP3);
p->rx_ppp4 += GET_STAT(RX_PORT_PPP4);
p->rx_ppp5 += GET_STAT(RX_PORT_PPP5);
p->rx_ppp6 += GET_STAT(RX_PORT_PPP6);
p->rx_ppp7 += GET_STAT(RX_PORT_PPP7);
p->rx_fcs_err += GET_STAT(RX_PORT_CRC_ERROR);
p->octets = GET_STAT(BYTES);
p->frames = GET_STAT(FRAMES);
p->bcast_frames = GET_STAT(BCAST);
p->mcast_frames = GET_STAT(MCAST);
p->ucast_frames = GET_STAT(UCAST);
p->error_frames = GET_STAT(ERROR);
p->frames_64 = GET_STAT(64B);
p->frames_65_127 = GET_STAT(65B_127B);
p->frames_128_255 = GET_STAT(128B_255B);
p->frames_256_511 = GET_STAT(256B_511B);
p->frames_512_1023 = GET_STAT(512B_1023B);
p->frames_1024_1518 = GET_STAT(1024B_1518B);
p->frames_1519_max = GET_STAT(1519B_MAX);
p->drop = GET_STAT(DROP_FRAMES);
stats->tx_bcast_bytes = GET_STAT(TX_VF_BCAST_BYTES);
stats->tx_bcast_frames = GET_STAT(TX_VF_BCAST_FRAMES);
stats->tx_mcast_bytes = GET_STAT(TX_VF_MCAST_BYTES);
stats->tx_mcast_frames = GET_STAT(TX_VF_MCAST_FRAMES);
stats->tx_ucast_bytes = GET_STAT(TX_VF_UCAST_BYTES);
stats->tx_ucast_frames = GET_STAT(TX_VF_UCAST_FRAMES);
stats->tx_drop_frames = GET_STAT(TX_VF_DROP_FRAMES);
stats->tx_offload_bytes = GET_STAT(TX_VF_OFFLOAD_BYTES);
stats->tx_offload_frames = GET_STAT(TX_VF_OFFLOAD_FRAMES);
stats->rx_bcast_bytes = GET_STAT(RX_VF_BCAST_BYTES);
stats->rx_bcast_frames = GET_STAT(RX_VF_BCAST_FRAMES);
stats->rx_mcast_bytes = GET_STAT(RX_VF_MCAST_BYTES);
stats->rx_mcast_frames = GET_STAT(RX_VF_MCAST_FRAMES);
stats->rx_ucast_bytes = GET_STAT(RX_VF_UCAST_BYTES);
stats->rx_ucast_frames = GET_STAT(RX_VF_UCAST_FRAMES);
stats->rx_err_frames = GET_STAT(RX_VF_ERR_FRAMES);