Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b0ed4dfd authored by Jack Pham's avatar Jack Pham Committed by Matt Wagantall
Browse files

usb: gadget: Add snapshot of changes to u_ether



Add snapshot of changes to u_ether.c and u_ether.h from msm-3.14
made between commit 455c6fdb (Linux 3.14) and commit 3bc54cf86b
(Merge "msm: camera: Add dummy sub module in sensor pipeline")

This is a squash of the following commits:

USB: u_ether: Configure the endpoints before enabling them in eth_stop()
usb: gadget: u_ether: Remove warning from gether_disconnect()
USB: gadget: u_ether: Fix data stall issue in RNDIS tethering mode
RNDIS: Add Data aggregation (multi packet) support
usb: u_ether: Add workqueue as bottom half handler for rx data path
Rndis: Add debug support to disable RNDIS Multipacket Feature
usb: Add support for rndis uplink aggregation
usb: rndis: reset ul aggregation stats for every set_alt
USB: gadget: rndis: Add module parameter for DL max packets per xfer
USB: u_ether: Check if driver_data and port_usb is NULL before accessing
usb: gadget: u_ether: Fix NULL pointer dereference crash
u_ether: Handle memory allocation failure case on tx path
usb: gadget: u_ether: Fix memory corruption in TX path
usb: gadget: u_ether: Add IOCTLs to allow MODE and HEADROOM changes
usb: gadget: u_ether: Don't drop IP packets with size > ETH_FRAME
u_ether: Add tx_throttle count for rndis performance statistic
USB: gadget: rndis: Optimize tx path for better performance
USB: gadget: ether: Clean up req->buf to avoid wild pointer
usb: gadget: u_ether: Add ETH_P_MAP skb protocol type
usb: gadget: u_ether: Add RMNET extended IOCTLs
USB: gadget: ether: Fix memory corruption issues with multi_pkt_xfers
USB: gadget: Compilation fixes for 64-bit support
usb: gadget: u_ether: set_wake_up_idle in rx path
usb: gadget: u_ether: reorganize code for better readability
usb: gadget: u_ether: add scatter/gather support
u_ether: Boost the cpu when rmnet/rndis ifc is up
USB: u_ether: Fix race between gether_disconnect and rx_submit
usb: gadget: u_ether: Fix incorrect S/G free in tx_complete
usb: gadget: u_ether: add tx multipler module param
usb: gadget: u_ether: Add module param to config cpu boost freq
usb: gadget: ether: Add counters for tx packets
USB: u_ether: Submit requests from rx_complete until limit reached
usb: gadget: u_ether: Fix NULL pointer dereference in process_tx_w()
usb: gadget: u_ether: Fix Out-of-order packets in UL bi-dir in RNDIS mode
usb: gadget: u_ether: Check if cable is connected before get and set MRU
usb: gadget: Disable scatter/gather for NCM
usb: gadget: u_ether: Fix missing parameter for DBG logs
USB: gadget: u_ether: unalign IP header to make DMA aligned
usb: gadget: u_ether: Fix updating of tx_bytes in network stats
usb: gadget: u_ether: Count number of bytes received at USB layer

Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent f154b2bb
Loading
Loading
Loading
Loading
+972 −90

File changed.

Preview size limit exceeded, changes collapsed.

+7 −2
Original line number Diff line number Diff line
@@ -76,7 +76,8 @@ struct gether {
	u32				fixed_out_len;
	u32				fixed_in_len;
	unsigned			ul_max_pkts_per_xfer;
	unsigned		dl_max_pkts_per_xfer;
	uint32_t			dl_max_pkts_per_xfer;
	uint32_t			dl_max_xfer_size;
	bool				multi_pkt_xfer;
	bool				supports_multi_frame;
	struct sk_buff			*(*wrap)(struct gether *port,
@@ -88,6 +89,7 @@ struct gether {
	/* called on network open/close */
	void				(*open)(struct gether *);
	void				(*close)(struct gether *);
	struct rndis_packet_msg_type	*header;
};

#define	DEFAULT_FILTER	(USB_CDC_PACKET_TYPE_BROADCAST \
@@ -134,6 +136,9 @@ struct net_device *gether_setup_name_default(const char *netname);
 *
 */
int gether_register_netdev(struct net_device *net);
void gether_update_dl_max_pkts_per_xfer(struct gether *link, uint32_t n);
void gether_update_dl_max_xfer_size(struct gether *link, uint32_t s);
void gether_enable_sg(struct gether *link, bool);

/* gether_setup_default - initialize one ethernet-over-usb link
 * Context: may sleep