net/ena: fix setting host attributes
authorJakub Palider <jpa@semihalf.com>
Mon, 6 Feb 2017 11:56:56 +0000 (12:56 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 10 Feb 2017 11:25:49 +0000 (12:25 +0100)
commit201ff2e57a47205b439e421e2ca907e9ce61bb26
treebe0f47caf5bda2daa13a1599acf7a4dcb9be0be1
parent478aed44d552f48c5d7bb4750a30dc0046bffdeb
net/ena: fix setting host attributes

The hardware may reject adding host_info in case support for
host_info is missing in the list of supported features. On the
other hand the list of supported features may contain support
for the host_info - typical bootstrap problem.

This patch solves it by removing check against support for
host_info attribute and improves error handling by reacting
only to host attribute write failure to the hardware.

Fixes: 99ecfbf845b3 ("ena: import communication layer")
Cc: stable@dpdk.org
Signed-off-by: Jakub Palider <jpa@semihalf.com>
drivers/net/ena/base/ena_com.c
drivers/net/ena/ena_ethdev.c