diff options
author | Alex Elder <elder@linaro.org> | 2021-03-15 16:51:46 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-15 20:41:58 -0700 |
commit | 45f3a13c816656c9d3d311880d90286341644d9b (patch) | |
tree | 4bc7fed39e5cac29bedcb91927fe0e51caec21b9 /include/linux/if_rmnet.h | |
parent | 0f13b5e6bf283a086b6d5b47be1ecf05a341eb9b (diff) | |
download | lwn-45f3a13c816656c9d3d311880d90286341644d9b.tar.gz lwn-45f3a13c816656c9d3d311880d90286341644d9b.zip |
net: qualcomm: rmnet: mark trailer field endianness
The fields in the checksum trailer structure used for QMAP protocol
RX packets are all big-endian format, so define them that way.
It turns out these fields are never actually used by the RMNet code.
The start offset is always assumed to be zero, and the length is
taken from the other packet headers. So making these fields
explicitly big endian has no effect on the behavior of the code.
Signed-off-by: Alex Elder <elder@linaro.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Alexander Duyck <alexanderduyck@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/if_rmnet.h')
-rw-r--r-- | include/linux/if_rmnet.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/if_rmnet.h b/include/linux/if_rmnet.h index 9661416a9bb4..8c7845baf383 100644 --- a/include/linux/if_rmnet.h +++ b/include/linux/if_rmnet.h @@ -32,8 +32,8 @@ struct rmnet_map_dl_csum_trailer { #else #error "Please fix <asm/byteorder.h>" #endif - u16 csum_start_offset; - u16 csum_length; + __be16 csum_start_offset; + __be16 csum_length; __be16 csum_value; } __aligned(1); |