net/sfc/base: add Rx parse incomplete event queue statistic

Signed-off-by: Andrew Lee <alee@solarflare.com>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
This commit is contained in:
Andrew Lee 2019-02-07 16:29:35 +00:00 committed by Ferruh Yigit
parent f702c073e0
commit b4e0f7d04e
3 changed files with 6 additions and 3 deletions

View File

@ -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;
}

View File

@ -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;

View File

@ -1382,7 +1382,7 @@ siena_ev_qcreate(
#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 */