net/i40e: fix mbuf alloc failed counter
authorMatt Peters <matt.peters@windriver.com>
Tue, 25 Apr 2017 12:28:45 +0000 (08:28 -0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 28 Apr 2017 12:46:18 +0000 (14:46 +0200)
commit09c04fbc8d1580b49095f6113ff3b140d699278e
tree1b86b64d6d70f9ea9864578c4136253a82dc996d
parentaf785e475cfaef30e525e48e242946529b237b7a
net/i40e: fix mbuf alloc failed counter

When an mbuf alloc fails during the mempool get operation for the
i40e bulk alloc receive function, the rx_mbuf_alloc_failed counter
is not incremented to record the error.

This fix ensures consistency with the other i40e receive procedures and
other net drivers.

Signed-off-by: Matt Peters <matt.peters@windriver.com>
Signed-off-by: Allain Legacy <allain.legacy@windriver.com>
Acked-by: Helin Zhang <helin.zhang@intel.com>
drivers/net/i40e/i40e_rxtx.c