[dpdk-dev] [PATCH] net/bonding: LACP Packet statistics support
Ferruh Yigit
ferruh.yigit at intel.com
Tue Oct 13 16:59:57 CEST 2020
On 10/10/2020 11:20 AM, Kiran KN wrote:
> net/bonding: LACP Packet statistics support
>
> Store the LACP packets sent and received for each slave.
> This can be used for debug purposes from any DPDK application.
>
> Signed-Off-By: Kiran K N <kirankn at juniper.net>
>
> Change-Id: Iae82bd7d0879a4c4333a292c96d431798c56e301
No change id in the upstream patches please.
<...>
> @@ -1715,3 +1726,31 @@ rte_eth_bond_8023ad_dedicated_queues_disable(uint16_t port)
>
> return retval;
> }
> +
> +uint64_t
> +rte_eth_bond_8023ad_lacp_tx_count(uint16_t port_id, uint8_t clear)
> +{
> +if(port_id > BOND_MODE_8023AD_MAX_SLAVES)
> +return -1;
> +
> +if(clear) {
> +lacpdu_tx_count[port_id] = 0;
> +return 0;
> +}
> +
> + return lacpdu_tx_count[port_id];
> +}
> +
> +uint64_t
> +rte_eth_bond_8023ad_lacp_rx_count(uint16_t port_id, uint8_t clear)
> +{
> +if(port_id > BOND_MODE_8023AD_MAX_SLAVES)
> +return -1;
> +
> +if(clear) {
> +lacpdu_rx_count[port_id] = 0;
> +return 0;
> +}
> +
Hi Kiran,
Something seems went wrong with the formatting, can you please send a new version?
Also can you please cc all bonding maintainers in next version?
More information about the dev
mailing list