[dpdk-dev] [PATCH v2] add drop statistic for af_packet
Ferruh Yigit
ferruh.yigit at intel.com
Tue Nov 26 15:45:23 CET 2019
On 11/26/2019 2:32 PM, Vadim wrote:
> Signed-off-by: Vadim <podovinnikov at protei.ru>
Can you please provide full "Name Surname <email address>" syntax?
> ---
> drivers/net/af_packet/rte_eth_af_packet.c | 11 ++++++++++-
> 1 file changed, 10 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/net/af_packet/rte_eth_af_packet.c b/drivers/net/af_packet/rte_eth_af_packet.c
> index f5806bf42..da54f82f7 100644
> --- a/drivers/net/af_packet/rte_eth_af_packet.c
> +++ b/drivers/net/af_packet/rte_eth_af_packet.c
> @@ -327,8 +327,10 @@ eth_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *igb_stats)
> {
> unsigned i, imax;
> unsigned long rx_total = 0, tx_total = 0, tx_err_total = 0;
> - unsigned long rx_bytes_total = 0, tx_bytes_total = 0;
> + unsigned long rx_bytes_total = 0, tx_bytes_total = 0, rx_drop = 0;
> const struct pmd_internals *internal = dev->data->dev_private;
> + socklen_t sock_len = sizeof(struct tpacket_stats_v3);
> + struct tpacket_stats_v3 st;
It seems you have missed comment from previous version, copying here:
This will work but since the PMD is implementing 'TPACKET_V2', this may be
confusing, what about using 'struct tpacket_stats'?
Can you also update the patchwork [1] when a new version sent please, to update
the status of the old one as "superseded".
[1] https://patches.dpdk.org/project/dpdk/list/
More information about the dev
mailing list