]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4c8a6da368a1837aa34c2c3a8552daaec22dbaa4
treeab504255c2ae3b9b2a3a24896e4ebf7216696709
parentd9b64d680fbf2db3fdc7c179c56449356c671c0c
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