Merge e7cdcf9e03
on remote branch
Change-Id: I62c77db0dbea5fdd963e8321193d680033bdf944
This commit is contained in:
commit
6478baf6bf
@ -2,8 +2,6 @@ ifneq ($(TARGET_PRODUCT),qssi)
|
|||||||
RMNET_CORE_DLKM_PLATFORMS_LIST := lahaina
|
RMNET_CORE_DLKM_PLATFORMS_LIST := lahaina
|
||||||
RMNET_CORE_DLKM_PLATFORMS_LIST += holi
|
RMNET_CORE_DLKM_PLATFORMS_LIST += holi
|
||||||
RMNET_CORE_DLKM_PLATFORMS_LIST += monaco
|
RMNET_CORE_DLKM_PLATFORMS_LIST += monaco
|
||||||
RMNET_CORE_DLKM_PLATFORMS_LIST += monaco_go
|
|
||||||
RMNET_CORE_DLKM_PLATFORMS_LIST += monaco_go_aon
|
|
||||||
|
|
||||||
ifeq ($(call is-board-platform-in-list, $(RMNET_CORE_DLKM_PLATFORMS_LIST)),true)
|
ifeq ($(call is-board-platform-in-list, $(RMNET_CORE_DLKM_PLATFORMS_LIST)),true)
|
||||||
#Make file to create RMNET_CORE DLKM
|
#Make file to create RMNET_CORE DLKM
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
/* Copyright (c) 2013-2021, The Linux Foundation. All rights reserved.
|
/* Copyright (c) 2013-2021, The Linux Foundation. All rights reserved.
|
||||||
|
* Copyright (c) 2022 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
|
||||||
@ -641,6 +642,7 @@ EXPORT_SYMBOL(rmnet_init_qmi_pt);
|
|||||||
|
|
||||||
void rmnet_get_packets(void *port, u64 *rx, u64 *tx)
|
void rmnet_get_packets(void *port, u64 *rx, u64 *tx)
|
||||||
{
|
{
|
||||||
|
struct net_device *dev;
|
||||||
struct rmnet_priv *priv;
|
struct rmnet_priv *priv;
|
||||||
struct rmnet_pcpu_stats *ps;
|
struct rmnet_pcpu_stats *ps;
|
||||||
unsigned int cpu, start;
|
unsigned int cpu, start;
|
||||||
@ -654,8 +656,12 @@ void rmnet_get_packets(void *port, u64 *rx, u64 *tx)
|
|||||||
*tx = 0;
|
*tx = 0;
|
||||||
*rx = 0;
|
*rx = 0;
|
||||||
rcu_read_lock();
|
rcu_read_lock();
|
||||||
hash_for_each(((struct rmnet_port *)port)->muxed_ep, bkt, ep, hlnode) {
|
hash_for_each_rcu(((struct rmnet_port *)port)->muxed_ep, bkt, ep,
|
||||||
priv = netdev_priv(ep->egress_dev);
|
hlnode) {
|
||||||
|
dev = ep->egress_dev;
|
||||||
|
if (!dev)
|
||||||
|
continue;
|
||||||
|
priv = netdev_priv(dev);
|
||||||
for_each_possible_cpu(cpu) {
|
for_each_possible_cpu(cpu) {
|
||||||
ps = per_cpu_ptr(priv->pcpu_stats, cpu);
|
ps = per_cpu_ptr(priv->pcpu_stats, cpu);
|
||||||
do {
|
do {
|
||||||
|
@ -2,8 +2,6 @@
|
|||||||
DATA_DLKM_BOARD_PLATFORMS_LIST := lahaina
|
DATA_DLKM_BOARD_PLATFORMS_LIST := lahaina
|
||||||
DATA_DLKM_BOARD_PLATFORMS_LIST += holi
|
DATA_DLKM_BOARD_PLATFORMS_LIST += holi
|
||||||
DATA_DLKM_BOARD_PLATFORMS_LIST += monaco
|
DATA_DLKM_BOARD_PLATFORMS_LIST += monaco
|
||||||
DATA_DLKM_BOARD_PLATFORMS_LIST += monaco_go
|
|
||||||
DATA_DLKM_BOARD_PLATFORMS_LIST += monaco_go_aon
|
|
||||||
ifneq ($(TARGET_BOARD_AUTO),true)
|
ifneq ($(TARGET_BOARD_AUTO),true)
|
||||||
ifeq ($(call is-board-platform-in-list,$(DATA_DLKM_BOARD_PLATFORMS_LIST)),true)
|
ifeq ($(call is-board-platform-in-list,$(DATA_DLKM_BOARD_PLATFORMS_LIST)),true)
|
||||||
BOARD_VENDOR_KERNEL_MODULES += $(KERNEL_MODULES_OUT)/rmnet_core.ko
|
BOARD_VENDOR_KERNEL_MODULES += $(KERNEL_MODULES_OUT)/rmnet_core.ko
|
||||||
|
Loading…
Reference in New Issue
Block a user