},
};
-extern void print_client_stats(void);
struct cmd_show_result {
cmdline_fixed_string_t show;
};
global_flag_stru_p->port_packets[1],
global_flag_stru_p->port_packets[2]);
rte_spinlock_unlock(&global_flag_stru_p->lock);
-
-#if defined(RTE_LIBRTE_BOND_DEBUG_ALB_L1) || defined(RTE_LIBRTE_BOND_DEBUG_ALB)
- print_client_stats();
-#endif
}
cmdline_parse_token_string_t cmd_show_show =
}
-void print_client_stats(void);
-void print_client_stats(void)
-{
- int i = 0;
- char buf[MaxIPv4String];
-
- for (; i < active_clients; i++) {
- ipv4_addr_to_dot(client_stats[i].ipv4_addr, buf, MaxIPv4String);
- printf("port:%d client:%s RX:%d TX:%d\n", client_stats[i].port, buf,
- client_stats[i].ipv4_rx_packets,
- client_stats[i].ipv4_tx_packets);
- }
-}
#ifdef RTE_LIBRTE_BOND_DEBUG_ALB
#define MODE6_DEBUG(info, src_ip, dst_ip, eth_h, arp_op, port, burstnumber) \
RTE_LOG(DEBUG, PMD, \