common/sfc_efx/base: fix indication of MAE encap support
authorIvan Malov <ivan.malov@oktetlabs.ru>
Sat, 10 Apr 2021 00:51:43 +0000 (03:51 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 13 Apr 2021 10:00:22 +0000 (12:00 +0200)
commit8076e40cde3b5230ac488aa44baa4dcf73993aca
tree687f69738c5bb564ea93f0314a2191a811a8b180
parent6d360284dffe51f852fc373058bfb274b9b8982c
common/sfc_efx/base: fix indication of MAE encap support

The indication fields in the MCDI response are individual
bits, but the current code mistakenly compares the larger
dword with 1. This breaks encap. type discovery. Fix that.

Fixes: 891408c45a63 ("common/sfc_efx/base: indicate MAE support for encapsulation")
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_mae.c