> On Mar 4, 2019, at 5:18 AM, David Marchand <david.march...@redhat.com> wrote: > > Transmit errors must not be reported in q_errors[] which is for > reception. > > Fixes: 02f96a0a82d1 ("net/tap: add TUN/TAP device PMD") > Cc: sta...@dpdk.org > Cc: Keith Wiles <keith.wi...@intel.com> > Signed-off-by: David Marchand <david.march...@redhat.com> > --- > drivers/net/tap/rte_eth_tap.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/net/tap/rte_eth_tap.c b/drivers/net/tap/rte_eth_tap.c > index 6f5109f..94c728f 100644 > --- a/drivers/net/tap/rte_eth_tap.c > +++ b/drivers/net/tap/rte_eth_tap.c > @@ -968,10 +968,9 @@ struct ipc_queues { > > for (i = 0; i < imax; i++) { > tap_stats->q_opackets[i] = pmd->txq[i].stats.opackets; > - tap_stats->q_errors[i] = pmd->txq[i].stats.errs; > tap_stats->q_obytes[i] = pmd->txq[i].stats.obytes; > tx_total += tap_stats->q_opackets[i]; > - tx_err_total += tap_stats->q_errors[i]; > + tx_err_total += pmd->txq[i].stats.errs; > tx_bytes_total += tap_stats->q_obytes[i]; > } > > -- > 1.8.3.1 > Acked-by: Keith Wiles <keith.wi...@intel.com> Regards, Keith
- [dpdk-dev] [PATCH 06/12] net/mlx4: fix incorrect rxq err... David Marchand
- Re: [dpdk-dev] [PATCH 06/12] net/mlx4: fix incorrec... Shahaf Shuler
- [dpdk-dev] [PATCH 05/12] net/kni: fix incorrect rxq erro... David Marchand
- [dpdk-dev] [PATCH 07/12] net/mlx5: fix incorrect rxq err... David Marchand
- Re: [dpdk-dev] [PATCH 07/12] net/mlx5: fix incorrec... Shahaf Shuler
- [dpdk-dev] [PATCH 09/12] net/pcap: fix incorrect rxq err... David Marchand
- [dpdk-dev] [PATCH 08/12] net/null: fix incorrect rxq err... David Marchand
- [dpdk-dev] [PATCH 10/12] net/ring: fix incorrect rxq err... David Marchand
- [dpdk-dev] [PATCH 11/12] net/szedata2: fix incorrect rxq... David Marchand
- [dpdk-dev] [PATCH 12/12] net/tap: fix incorrect rxq erro... David Marchand
- Re: [dpdk-dev] [PATCH 12/12] net/tap: fix incorrect... Wiles, Keith
- Re: [dpdk-dev] [PATCH 00/12] rxq q_errors[] statistics f... Ferruh Yigit
- Re: [dpdk-dev] [PATCH 00/12] rxq q_errors[] statist... David Marchand
- Re: [dpdk-dev] [PATCH 00/12] rxq q_errors[] sta... David Marchand
- [dpdk-dev] [RFC PATCH 1/2] ethdev: introduc... David Marchand
- [dpdk-dev] [RFC PATCH 2/2] net/af_packe... David Marchand
- Re: [dpdk-dev] [RFC PATCH 1/2] ethdev: ... David Marchand
- Re: [dpdk-dev] [RFC PATCH 1/2] ethdev: ... Ferruh Yigit
- Re: [dpdk-dev] [RFC PATCH 1/2] eth... Stephen Hemminger
- Re: [dpdk-dev] [RFC PATCH 1/2] eth... David Marchand