android_kernel_oneplus_msm8998/include/net/rmnet_config.h
Subash Abhinov Kasiviswanathan 6d58572de9 net: rmnet_data: Define the skb recycle handler for transports
rmnet_data currently frees incoming memory when de-aggregating
large incoming aggregated packets. This may introduce additional
overhead in the memory allocator. Add a handler as part of the
rx_handler_data to recycle the skb's. This handler needs to
defined within the specific transport driver. If the recycle
handler is not implemented by the transport, rmnet_data will
free the skb (default behavior).

CRs-Fixed: 1048396
Change-Id: I14b929d78c87ced26cff3c32876d2eec5de33350
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
2016-09-12 14:05:12 -06:00

27 lines
787 B
C

/*
* Copyright (c) 2016, 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
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* RMNET Data config definition
*
*/
#ifndef _RMNET_CONFIG_H_
#define _RMNET_CONFIG_H_
#include <linux/skbuff.h>
struct rmnet_phys_ep_conf_s {
void (*recycle)(struct sk_buff *); /* Destruct function */
void *config;
};
#endif /* _RMNET_CONFIG_H_ */