]> git.baikalelectronics.ru Git - kernel.git/commit
qed: Fix populating the invalid stag value in multi function mode.
authorSudarsana Reddy Kalluru <sudarsana.kalluru@cavium.com>
Thu, 20 Sep 2018 04:59:10 +0000 (21:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Sep 2018 06:12:24 +0000 (23:12 -0700)
commit4bedb24227cfbf46da37b4649e6dbacc922e9c28
tree1777286a0f22b7157eac2de22c7363c161376e5e
parent59576fa6fc56bac893ed1ae24a9f5cffa4b4022c
qed: Fix populating the invalid stag value in multi function mode.

In multi-function mode, driver receives the stag value (outer vlan)
for a PF from management FW (MFW). If the stag value is negotiated prior to
the driver load, then the stag is not notified to the driver and hence
driver will have the invalid stag value.
The fix is to request the MFW for STAG value during the driver load time.

Fixes: 63947d5d ("qed: Add support for Unified Fabric Port")
Signed-off-by: Sudarsana Reddy Kalluru <Sudarsana.Kalluru@cavium.com>
Signed-off-by: Tomer Tayar <Tomer.Tayar@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_dev.c
drivers/net/ethernet/qlogic/qed/qed_hsi.h