On 11/26/2019 2:32 PM, Vadim wrote: > Signed-off-by: Vadim <podovinni...@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/