net/ena: disable readless communication when no HW support
authorJan Medala <jan@semihalf.com>
Thu, 30 Jun 2016 15:04:56 +0000 (17:04 +0200)
committerBruce Richardson <bruce.richardson@intel.com>
Fri, 8 Jul 2016 13:19:40 +0000 (15:19 +0200)
commitc414455701588efb80b5fde9518f6000d35b0e66
treee632a74e0d8b0d848f93d65e59bbb240e3b12b70
parent372c1af5ed8f2165f574dde802b5c9467c2a5a1e
net/ena: disable readless communication when no HW support

Depending on HW revision readless communcation between host and device
may be unavailable. In that case prevent PMD from setting up readless
communication mechanism.

"readless" refers to ability to read ENA registers without actually
issuing read request from host (x86). Instead, host programs 2 registers
on the device that triggers a DMA from device to host and reports a
register value. However, this functionality is not going to be available
in all types of devices. The decision if this mode is supported or not,
is taken from revision_id in pci configuration space.

Signed-off-by: Alexander Matushevsky <matua@amazon.com>
Signed-off-by: Jakub Palider <jpa@semihalf.com>
Signed-off-by: Jan Medala <jan@semihalf.com>
drivers/net/ena/ena_ethdev.c
drivers/net/ena/ena_ethdev.h