ionic: new ionic device identity level and VF start control
authorShannon Nelson <snelson@pensando.io>
Wed, 26 Oct 2022 14:37:42 +0000 (07:37 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 28 Oct 2022 03:34:13 +0000 (20:34 -0700)
commitf43a96d91df1a097d7d7edd5baff960f4067b2a7
treecfc45ba7b728249f2f5eee5b615a571b863e29b0
parent23e884a253a77ed565e0c410fae660ea8e7081c8
ionic: new ionic device identity level and VF start control

A new ionic dev_cmd is added to the interface in ionic_if.h,
with a new capabilities field in the ionic device identity to
signal its availability in the FW.  The identity level code is
incremented to '2' to show support for this new capabilities
bitfield.

If the driver has indicated with the new identity level that
it has the VF_CTRL command, newer FW will wait for the start
command before starting the VFs after a FW update or crash
recovery.

This patch updates the driver to make use of the new VF start
control in fw_up path to be sure that the PF has set the user
attributes on the VF before the FW allows the VFs to restart.

Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/pensando/ionic/ionic_dev.c
drivers/net/ethernet/pensando/ionic/ionic_dev.h
drivers/net/ethernet/pensando/ionic/ionic_if.h
drivers/net/ethernet/pensando/ionic/ionic_lif.c
drivers/net/ethernet/pensando/ionic/ionic_main.c