rmnet_core: Replace dev_kfree_skb_any to consume

Change dev_kfree_skb_any calls to dev_consume_skb_any calls in
order for stats to get incremented.

CRs-Fixed: 3649657
Change-Id: I70a2f007fb984b45dfd353bcd56d8e8f460eaa13
Signed-off-by: Raul Martinez <quic_mraul@quicinc.com>
This commit is contained in:
Raul Martinez
2023-12-12 10:34:01 -08:00
committed by Subash Abhinov Kasiviswanathan
parent 6606b6d6cf
commit d49a8b5b73
2 changed files with 4 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
/* Copyright (c) 2020-2021 The Linux Foundation. All rights reserved. /* Copyright (c) 2020-2021 The Linux Foundation. All rights reserved.
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
* *
* This program is free software; you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License version 2 and
@@ -90,7 +91,7 @@ static void rmnet_ll_mhi_tx_complete(struct mhi_device *mhi_dev,
else else
stats->tx_complete++; stats->tx_complete++;
dev_kfree_skb_any(skb); dev_consume_skb_any(skb);
} }
static int rmnet_ll_mhi_probe(struct mhi_device *mhi_dev, static int rmnet_ll_mhi_probe(struct mhi_device *mhi_dev,

View File

@@ -1523,7 +1523,7 @@ new_packet:
state->agg_skb->protocol = htons(ETH_P_MAP); state->agg_skb->protocol = htons(ETH_P_MAP);
state->agg_count = 1; state->agg_count = 1;
ktime_get_real_ts64(&state->agg_time); ktime_get_real_ts64(&state->agg_time);
dev_kfree_skb_any(skb); dev_consume_skb_any(skb);
goto schedule; goto schedule;
} }
diff = timespec64_sub(state->agg_last, state->agg_time); diff = timespec64_sub(state->agg_last, state->agg_time);
@@ -1538,7 +1538,7 @@ new_packet:
rmnet_map_linearize_copy(state->agg_skb, skb); rmnet_map_linearize_copy(state->agg_skb, skb);
state->agg_count++; state->agg_count++;
dev_kfree_skb_any(skb); dev_consume_skb_any(skb);
schedule: schedule:
if (state->agg_state != -EINPROGRESS) { if (state->agg_state != -EINPROGRESS) {