OSDN Git Service

qede - Add a statistic for a case where driver drops tx packet due to memory allocati...
authorMichael Shteinbok <michael.shteinbok@cavium.com>
Thu, 29 Nov 2018 08:50:19 +0000 (10:50 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Nov 2018 18:41:58 +0000 (10:41 -0800)
commitdcc6abae0f473a67543ce651fbfb6b15452876f6
treed70fdbbae26c02e8432fa6d3b886be232d39a483
parentc1cb11bcbd09f5f027cbc7fadddab169714948df
qede - Add a statistic for a case where driver drops tx packet due to memory allocation failure.

skb_linearization can fail due to memory allocation failure.
In such a case, the driver will drop the packet. In such a case
The driver used to print an error message.
This patch replaces this error message by a dedicated statistic.

Signed-off-by: Michael Shteinbok <michael.shteinbok@cavium.com>
Signed-off-by: Ariel Elior <ariel.elior@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qede/qede.h
drivers/net/ethernet/qlogic/qede/qede_ethtool.c
drivers/net/ethernet/qlogic/qede/qede_fp.c