• Kishen Maloor's avatar
    mptcp: handle local addrs announced by userspace PMs · 4638de5a
    Kishen Maloor authored
    This change adds an internal function to store/retrieve local
    addrs announced by userspace PM implementations to/from its kernel
    context. The function addresses the requirements of three scenarios:
    1) ADD_ADDR announcements (which require that a local id be
    provided), 2) retrieving the local id associated with an address,
    and also where one may need to be assigned, and 3) reissuance of
    ADD_ADDRs when there's a successful match of addr/id.
    
    The list of all stored local addr entries is held under the
    MPTCP sock structure. Memory for these entries is allocated from
    the sock option buffer, so the list of addrs is bounded by optmem_max.
    The list if not released via REMOVE_ADDR signals is ultimately
    freed when the sock is destructed.
    Acked-by: default avatarPaolo Abeni <pabeni@redhat.com>
    Signed-off-by: default avatarKishen Maloor <kishen.maloor@intel.com>
    Signed-off-by: default avatarMat Martineau <mathew.j.martineau@linux.intel.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    4638de5a
Makefile 436 Bytes