• Loic Poulain's avatar
    net: mhi: Allow decoupled MTU/MRU · 3af562a3
    Loic Poulain authored
    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: default avatarLoic Poulain <loic.poulain@linaro.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    3af562a3
net.c 11.1 KB