core: rmnet: Fastforward to 4.19 tip
This brings the RmNet and DFC modules up to date with the 4.19 tip as of commit 9b38611ea527 ("rmnet: Reduce synchronize_rcu calls"). As part of this, the rmnet_ctl driver was also incorporated, using commit 4ceee3aafb7d ("rmnet_ctl: Add IPC logging and optimizations") Change-Id: Ic45d46074c7401dfed408c769cfb6462dac0d4ee Signed-off-by: Sean Tranchetti <stranche@codeaurora.org>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2018-2020, The Linux Foundation. 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
|
||||
@@ -16,9 +16,11 @@
|
||||
|
||||
#include <linux/netdevice.h>
|
||||
#include <linux/skbuff.h>
|
||||
#define CONFIG_QTI_QMI_RMNET 1
|
||||
|
||||
void rmnet_map_tx_qmap_cmd(struct sk_buff *qmap_skb);
|
||||
|
||||
#ifdef CONFIG_QTI_QMI_RMNET
|
||||
void *rmnet_get_qmi_pt(void *port);
|
||||
void *rmnet_get_qos_pt(struct net_device *dev);
|
||||
void *rmnet_get_rmnet_port(struct net_device *dev);
|
||||
@@ -31,4 +33,68 @@ void rmnet_set_powersave_format(void *port);
|
||||
void rmnet_clear_powersave_format(void *port);
|
||||
void rmnet_get_packets(void *port, u64 *rx, u64 *tx);
|
||||
int rmnet_get_powersave_notif(void *port);
|
||||
struct net_device *rmnet_get_real_dev(void *port);
|
||||
int rmnet_get_dlmarker_info(void *port);
|
||||
#else
|
||||
static inline void *rmnet_get_qmi_pt(void *port)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static inline void *rmnet_get_qos_pt(struct net_device *dev)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static inline void *rmnet_get_rmnet_port(struct net_device *dev)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static inline struct net_device *rmnet_get_rmnet_dev(void *port,
|
||||
u8 mux_id)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static inline void rmnet_reset_qmi_pt(void *port)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void rmnet_init_qmi_pt(void *port, void *qmi)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void rmnet_enable_all_flows(void *port)
|
||||
{
|
||||
}
|
||||
|
||||
static inline bool rmnet_all_flows_enabled(void *port)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
static inline void rmnet_set_port_format(void *port)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void rmnet_get_packets(void *port, u64 *rx, u64 *tx)
|
||||
{
|
||||
}
|
||||
|
||||
static inline int rmnet_get_powersave_notif(void *port)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline struct net_device *rmnet_get_real_dev(void *port)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static inline int rmnet_get_dlmarker_info(void *port)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif /* CONFIG_QTI_QMI_RMNET */
|
||||
#endif /*_RMNET_QMI_H*/
|
||||
|
Referens i nytt ärende
Block a user