aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/qualcomm/rmnet/rmnet_private.h
diff options
context:
space:
mode:
authorAlex Elder <elder@linaro.org>2021-06-12 09:37:32 -0500
committerDavid S. Miller <davem@davemloft.net>2021-06-12 13:18:48 -0700
commitfab01a6f3a61748b9c2e038c84498c6624b06236 (patch)
tree39f7eaa450b74b11c6667a1a694af737247f027b /drivers/net/ethernet/qualcomm/rmnet/rmnet_private.h
parentnet: qualcomm: rmnet: show that an intermediate sum is zero (diff)
downloadlinux-dev-fab01a6f3a61748b9c2e038c84498c6624b06236.tar.xz
linux-dev-fab01a6f3a61748b9c2e038c84498c6624b06236.zip
net: qualcomm: rmnet: return earlier for bad checksum
In rmnet_map_ipv4_dl_csum_trailer(), if the sum of the trailer checksum and the pseudo checksum is non-zero, checksum validation has failed. We can return an error as soon as we know that. We can do the same thing in rmnet_map_ipv6_dl_csum_trailer(). Add some comments that explain where we're headed. Signed-off-by: Alex Elder <elder@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qualcomm/rmnet/rmnet_private.h')
0 files changed, 0 insertions, 0 deletions