net/ena: adjust error checking and cleaning
authorRafal Kozik <rk@semihalf.com>
Thu, 7 Jun 2018 09:43:16 +0000 (11:43 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 14 Jun 2018 17:27:50 +0000 (19:27 +0200)
commit241da076b1f75d9ea485848bccee7e4fd0ab2838
tree35ac8ba0a92715bdc7d23d4dc1f8993ee42aa512
parent3d19e1abb7930e138ec861ce6905d7adbe8ecf27
net/ena: adjust error checking and cleaning

Adjust error checking and cleaning to Linux driver:
 * add checking if MTU is to small,
 * fix error messages (mismatched Rx and Tx),
 * return error received from base driver or proper error
   code instead of -1,
 * in case of error release occupied resources,
 * in case of Rx error trigger NIC reset.

Signed-off-by: Rafal Kozik <rk@semihalf.com>
Acked-by: Michal Krawczyk <mk@semihalf.com>
drivers/net/ena/ena_ethdev.c
drivers/net/ena/ena_ethdev.h