mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 14:41:27 +00:00
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>
This commit is contained in:
parent
6b13d8f71f
commit
d548d3930a
1 changed files with 4 additions and 4 deletions
|
@ -575,10 +575,10 @@ struct enetc_cmd_rfse {
|
||||||
u8 smac_m[6];
|
u8 smac_m[6];
|
||||||
u8 dmac_h[6];
|
u8 dmac_h[6];
|
||||||
u8 dmac_m[6];
|
u8 dmac_m[6];
|
||||||
u32 sip_h[4];
|
__be32 sip_h[4];
|
||||||
u32 sip_m[4];
|
__be32 sip_m[4];
|
||||||
u32 dip_h[4];
|
__be32 dip_h[4];
|
||||||
u32 dip_m[4];
|
__be32 dip_m[4];
|
||||||
u16 ethtype_h;
|
u16 ethtype_h;
|
||||||
u16 ethtype_m;
|
u16 ethtype_m;
|
||||||
u16 ethtype4_h;
|
u16 ethtype4_h;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue