net/sfc/base: add Rx parse incomplete event queue statistic
authorAndrew Lee <alee@solarflare.com>
Thu, 7 Feb 2019 16:29:35 +0000 (16:29 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Feb 2019 10:35:41 +0000 (11:35 +0100)
Signed-off-by: Andrew Lee <alee@solarflare.com>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/net/sfc/base/ef10_ev.c
drivers/net/sfc/base/efx.h
drivers/net/sfc/base/efx_ev.c

index 2029308..6868787 100644 (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;
        }
 
index f5ad095..f49ae20 100644 (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;
 
index b986239..ada6db3 100644 (file)
@@ -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 */