]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net/ena: change condition for host attribute configuration
authorNetanel Belgazal <netanel@annapurnalabs.com>
Thu, 9 Feb 2017 13:21:38 +0000 (15:21 +0200)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 6 Mar 2017 05:27:08 +0000 (21:27 -0800)
commit061eca8716893126e03e23f5baf956a87ca652ba
tree31d854bbab76533c133350ba9d1a92d21a1d839c
parent07ad288348b690490b42cdca5661483d9895e775
net/ena: change condition for host attribute configuration

Orabug: 25535122

Move the host info config to be the first admin command that is executed.
This change require the driver to remove the 'feature check'
from host info configuration flow.
The check is removed since the supported features bitmask field
is retrieved only after calling ENA_ADMIN_DEVICE_ATTRIBUTES admin command.

If set host info is not supported an error will be returned by the device.

Signed-off-by: Netanel Belgazal <netanel@annapurnalabs.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit dd8427a78ffccbacf166a2d5d5eae55b586e1afe)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/amazon/ena/ena_com.c
drivers/net/ethernet/amazon/ena/ena_netdev.c