enetc: Fix endianness issues for enetc_ethtool
authorClaudiu Manoil <claudiu.manoil@nxp.com>
Thu, 19 Nov 2020 10:12:14 +0000 (12:12 +0200)
committerXiaobo Xie <xiaobo.xie@nxp.com>
Thu, 29 Apr 2021 07:59:57 +0000 (09:59 +0200)
commite38dc6a6b129cb3d21539b406a2bfb8545fb4b90
tree0128bc4670078cc29ef9a9de59f70760164fd019
parent5316b1611e6cc6ceb2284515ecbfacabd129c24f
enetc: Fix endianness issues for enetc_ethtool

These particular fields are specified in the H/W reference
manual as having network byte order format, so enforce big
endian annotation for them and clear the related sparse
warnings in the process.

Signed-off-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
(cherry picked from commit d548d3930ab635653d1549c864ce1a002dc3b218)
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
drivers/net/ethernet/freescale/enetc/enetc_hw.h