summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/broadcom/bnxt/bnxt.c
diff options
context:
space:
mode:
authorMichael Chan <michael.chan@broadcom.com>2019-10-21 08:34:26 +0300
committerJakub Kicinski <jakub.kicinski@netronome.com>2019-10-22 23:15:39 +0300
commit83a46a82b96c1928ad82958752523fb0c7d9fcce (patch)
treee362782c6b91e4cb6ebff7dba534dfcf8af2a203 /drivers/net/ethernet/broadcom/bnxt/bnxt.c
parentc329230ce886f449a6e559b636096b75ab00d18a (diff)
downloadlinux-83a46a82b96c1928ad82958752523fb0c7d9fcce.tar.xz
bnxt_en: Fix devlink NVRAM related byte order related issues.
The current code does not do endian swapping between the devlink parameter and the internal NVRAM representation. Define a union to represent the little endian NVRAM data and add 2 helper functions to copy to and from the NVRAM data with the proper byte swapping. Fixes: 782a624d00fa ("bnxt_en: Add bnxt_en initial port params table and register it") Cc: Jiri Pirko <jiri@mellanox.com> Reviewed-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 'drivers/net/ethernet/broadcom/bnxt/bnxt.c')
0 files changed, 0 insertions, 0 deletions