Merge tag 'LA.UM.9.14.1.r1-14100-QCM6490.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/qcom/opensource/datarmnet into android13-5.4-lahaina
"LA.UM.9.14.1.r1-14100-QCM6490.QSSI14.0" * tag 'LA.UM.9.14.1.r1-14100-QCM6490.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/qcom/opensource/datarmnet: rmnet_core: pass correct length to ip_fast_csum Change-Id: I9f2d36bcaceac3e94658e1e1c66472464c632182
This commit is contained in:
commit
f6b6fc438e
@ -1,5 +1,5 @@
|
||||
/* Copyright (c) 2013-2020, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2023-2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
@ -1447,7 +1447,7 @@ static int rmnet_frag_checksum_pkt(struct rmnet_frag_descriptor *frag_desc)
|
||||
|
||||
csum_len -= frag_desc->ip_len;
|
||||
/* IPv4 checksum must be valid */
|
||||
if (ip_fast_csum((u8 *)iph, frag_desc->ip_len)) {
|
||||
if (ip_fast_csum((u8 *)iph, iph->ihl)) {
|
||||
priv->stats.csum_sw++;
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user