]> git.droids-corp.org - dpdk.git/commit
common/sfc_efx/base: convert EFX PCIe INTF to MCDI value
authorIvan Malov <ivan.malov@oktetlabs.ru>
Thu, 26 May 2022 08:45:48 +0000 (11:45 +0300)
committerAndrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Tue, 31 May 2022 16:50:00 +0000 (18:50 +0200)
commitb85f50487eed8f94c85952587890fffd4de9a0d9
treeed027fb9f8819c202ae39e658472f5f9535de936
parent592ab76f9f0f41993bebb44da85c37750a93ece9
common/sfc_efx/base: convert EFX PCIe INTF to MCDI value

When the driver queries its PCIe interface type via MCDI,
the value from the response is translated to an EFX enum.

When the driver passes this enum value back to any other
MCDI helper, the inverse translation has to be conducted.

Fixes: 1bf9ff57ccb3 ("common/sfc_efx/base: allow getting VNIC MCDI client handles")
Cc: stable@dpdk.org
Signed-off-by: Ivan Malov <ivan.malov@oktetlabs.ru>
Reviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Reviewed-by: Andy Moreton <amoreton@xilinx.com>
drivers/common/sfc_efx/base/efx_impl.h
drivers/common/sfc_efx/base/efx_mcdi.c