[dpdk-dev] [PATCH v2 1/1] ethdev: distinguish between drop and error stats

Thomas Monjalon thomas.monjalon at 6wind.com
Tue Nov 3 00:46:57 CET 2015


2015-10-19 13:20, Maryam Tahhan:
> Make a distniction between dropped packets and error statistics to allow
> a higher level fault management entity to interact with DPDK and take
> appropriate measures when errors are detected. It will also provide
> valuable information for any applications that collects/extracts DPDK
> stats, such applications include Open vSwitch.
> After this patch the distinction is:
> ierrors = Total number of packets dropped by hardware (malformed
> packets, ...) Where the # of drops can ONLY be <=  the packets received
> (without overlap between registers).
> ipkterrors = Total number of erroneous received packets. Where the #
> of errors can be >= the packets received (without overlap between
> registers), this is because there may be multiple errors associated with
> a packet.
[...]
> -	uint64_t ierrors;   /**< Total number of erroneous received packets. */
> +	uint64_t ierrors;
> +	/**< Total number of packets dropped by hardware (malformed packets...)
> +	 * Where the # of drops can ONLY be <=  the packets received (without
> +	 * overlap between registers).
> +	 */
>  	uint64_t oerrors;   /**< Total number of failed transmitted packets. */
> +	uint64_t ipkterrors;
> +	/**< Total number of erroneous received packets. Where the number of
> +	 * errors can be >= the packets received (without overlap between
> +	 * registers), this is because there may be multiple errors associated with
> +	 * a packet.
> +	 */

There was not a lot of comments on this proposal.
If the idea is well received, it needs to be implemented in drivers, at least
few of them.


More information about the dev mailing list