From: Andrew Lee Date: Thu, 7 Feb 2019 16:29:35 +0000 (+0000) Subject: net/sfc/base: add Rx parse incomplete event queue statistic X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=b4e0f7d04ef90ada9f32cf8658aa8bea863351a0;p=dpdk.git net/sfc/base: add Rx parse incomplete event queue statistic Signed-off-by: Andrew Lee Signed-off-by: Andrew Rybchenko --- diff --git a/drivers/net/sfc/base/ef10_ev.c b/drivers/net/sfc/base/ef10_ev.c index 2029308769..6868787ed4 100644 --- a/drivers/net/sfc/base/ef10_ev.c +++ b/drivers/net/sfc/base/ef10_ev.c @@ -824,6 +824,7 @@ ef10_ev_rx_packed_stream( } if (EFX_QWORD_FIELD(*eqp, ESF_DZ_RX_PARSE_INCOMPLETE)) { + EFX_EV_QSTAT_INCR(eep, EV_RX_PARSE_INCOMPLETE); flags |= EFX_PKT_PACKED_STREAM_PARSE_INCOMPLETE; goto deliver; } @@ -991,7 +992,7 @@ ef10_ev_rx( * or headers that are too long for the parser. * Headers and checksums must be validated by the host. */ - /* TODO: EFX_EV_QSTAT_INCR(eep, EV_RX_PARSE_INCOMPLETE); */ + EFX_EV_QSTAT_INCR(eep, EV_RX_PARSE_INCOMPLETE); goto deliver; } diff --git a/drivers/net/sfc/base/efx.h b/drivers/net/sfc/base/efx.h index f5ad095d41..f49ae20278 100644 --- a/drivers/net/sfc/base/efx.h +++ b/drivers/net/sfc/base/efx.h @@ -1928,7 +1928,7 @@ typedef struct efx_evq_s efx_evq_t; #if EFSYS_OPT_QSTATS -/* START MKCONFIG GENERATED EfxHeaderEventQueueBlock 6f3843f5fe7cc843 */ +/* START MKCONFIG GENERATED EfxHeaderEventQueueBlock 0a147ace40844969 */ typedef enum efx_ev_qstat_e { EV_ALL, EV_RX, @@ -1967,6 +1967,7 @@ typedef enum efx_ev_qstat_e { EV_DRIVER_TX_DSC_ERROR, EV_DRV_GEN, EV_MCDI_RESPONSE, + EV_RX_PARSE_INCOMPLETE, EV_NQSTATS } efx_ev_qstat_t; diff --git a/drivers/net/sfc/base/efx_ev.c b/drivers/net/sfc/base/efx_ev.c index b986239951..ada6db3d9e 100644 --- a/drivers/net/sfc/base/efx_ev.c +++ b/drivers/net/sfc/base/efx_ev.c @@ -1382,7 +1382,7 @@ fail1: #if EFSYS_OPT_QSTATS #if EFSYS_OPT_NAMES -/* START MKCONFIG GENERATED EfxEventQueueStatNamesBlock c0f3bc5083b40532 */ +/* START MKCONFIG GENERATED EfxEventQueueStatNamesBlock ac223f7134058b4f */ static const char * const __efx_ev_qstat_name[] = { "all", "rx", @@ -1421,6 +1421,7 @@ static const char * const __efx_ev_qstat_name[] = { "driver_tx_dsc_error", "drv_gen", "mcdi_response", + "rx_parse_incomplete", }; /* END MKCONFIG GENERATED EfxEventQueueStatNamesBlock */