linux/drivers/net/mhi
Loic Poulain 3af562a37b net: mhi: Allow decoupled MTU/MRU
MBIM protocol makes the mhi network interface asymmetric, ingress data
received from MHI is MBIM protocol, possibly containing multiple
aggregated IP packets, while egress data received from network stack is
IP protocol.

This changes allows a 'protocol' to specify its own MRU, that when
specified is used to allocate MHI RX buffers (skb).

For MBIM, Set the default MTU to 1500, which is the usual network MTU
for WWAN IP packets, and MRU to 3.5K (for allocation efficiency),
allowing skb to fit in an usual 4K page (including padding,
skb_shared_info, ...).

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-03-29 16:26:16 -07:00
..
Makefile net: mhi: Add mbim proto 2021-02-10 15:11:51 -08:00
mhi.h net: mhi: Allow decoupled MTU/MRU 2021-03-29 16:26:16 -07:00
net.c net: mhi: Allow decoupled MTU/MRU 2021-03-29 16:26:16 -07:00
proto_mbim.c net: mhi: Allow decoupled MTU/MRU 2021-03-29 16:26:16 -07:00