diff options
author | Vasundhara Volam <vasundhara-v.volam@broadcom.com> | 2019-10-21 01:34:25 -0400 |
---|---|---|
committer | Jakub Kicinski <jakub.kicinski@netronome.com> | 2019-10-22 13:15:39 -0700 |
commit | c329230ce886f449a6e559b636096b75ab00d18a (patch) | |
tree | c5be412439b3c5dfb46a734f6a9333ec590417e1 /drivers/vfio | |
parent | net: stmmac: Fix the problem of tso_xmit (diff) | |
download | linux-dev-c329230ce886f449a6e559b636096b75ab00d18a.tar.xz linux-dev-c329230ce886f449a6e559b636096b75ab00d18a.zip |
bnxt_en: Fix the size of devlink MSIX parameters.
The current code that rounds up the NVRAM parameter bit size to the next
byte size for the devlink parameter is not always correct. The MSIX
devlink parameters are 4 bytes and we don't get the correct size
using this method.
Fix it by adding a new dl_num_bytes member to the bnxt_dl_nvm_param
structure which statically provides bytesize information according
to the devlink parameter type definition.
Fixes: 782a624d00fa ("bnxt_en: Add bnxt_en initial port params table and register it")
Cc: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions