Loading drivers/net/ethernet/qualcomm/rmnet/rmnet_genl.c +3 −6 Original line number Original line Diff line number Diff line // SPDX-License-Identifier: GPL-2.0-only // SPDX-License-Identifier: GPL-2.0-only /* Copyright (c) 2019, The Linux Foundation. All rights reserved. /* Copyright (c) 2019-2020, The Linux Foundation. All rights reserved. * * * RMNET Data Generic Netlink * RMNET Data Generic Netlink * * Loading Loading @@ -187,11 +187,8 @@ static void rmnet_create_pid_bps_resp(struct rmnet_core_pid_bps_resp tx_bytes_cur = node_p->tx_bytes; tx_bytes_cur = node_p->tx_bytes; if (tx_bytes_cur <= node_p->tx_bytes_last_query) { if (tx_bytes_cur <= node_p->tx_bytes_last_query) { /* Dont send inactive pids to userspace */ /* Dont send inactive pids to userspace */ /* TODO: can remove from hash table probably */ hash_del(&node_p->list); node_p->tx_bps = 0; kfree(node_p); node_p->timstamp_last_query = pid_bps_resp_ptr->timestamp; node_p->sched_boost_remaining_ms = 0; continue; continue; } } Loading Loading
drivers/net/ethernet/qualcomm/rmnet/rmnet_genl.c +3 −6 Original line number Original line Diff line number Diff line // SPDX-License-Identifier: GPL-2.0-only // SPDX-License-Identifier: GPL-2.0-only /* Copyright (c) 2019, The Linux Foundation. All rights reserved. /* Copyright (c) 2019-2020, The Linux Foundation. All rights reserved. * * * RMNET Data Generic Netlink * RMNET Data Generic Netlink * * Loading Loading @@ -187,11 +187,8 @@ static void rmnet_create_pid_bps_resp(struct rmnet_core_pid_bps_resp tx_bytes_cur = node_p->tx_bytes; tx_bytes_cur = node_p->tx_bytes; if (tx_bytes_cur <= node_p->tx_bytes_last_query) { if (tx_bytes_cur <= node_p->tx_bytes_last_query) { /* Dont send inactive pids to userspace */ /* Dont send inactive pids to userspace */ /* TODO: can remove from hash table probably */ hash_del(&node_p->list); node_p->tx_bps = 0; kfree(node_p); node_p->timstamp_last_query = pid_bps_resp_ptr->timestamp; node_p->sched_boost_remaining_ms = 0; continue; continue; } } Loading