bnxt_en: Store the running firmware version code.
authorMichael Chan <michael.chan@broadcom.com>
Tue, 23 Jun 2020 23:01:35 +0000 (19:01 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jun 2020 03:13:58 +0000 (20:13 -0700)
commitd0ad2ea2bc185835f8a749302ad07b70528d2a09
treeab504255c2ae3b9b2a3a24896e4ebf7216696709
parenta83024b95ab4c4c38c8c5b0f43402ffd92a851d1
bnxt_en: Store the running firmware version code.

We currently only store the firmware version as a string for ethtool
and devlink info.  Store it also as a version code.  The next 2
patches will need to check the firmware major version to determine
some workarounds.

We also use the 16-bit firmware version fields if the firmware is newer
and provides the 16-bit fields.

Reviewed-by: Edwin Peer <edwin.peer@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h