• M
    xsk: add umem fill queue support and mmap · 423f3832
    Magnus Karlsson 提交于
    Here, we add another setsockopt for registered user memory (umem)
    called XDP_UMEM_FILL_QUEUE. Using this socket option, the process can
    ask the kernel to allocate a queue (ring buffer) and also mmap it
    (XDP_UMEM_PGOFF_FILL_QUEUE) into the process.
    
    The queue is used to explicitly pass ownership of umem frames from the
    user process to the kernel. These frames will in a later patch be
    filled in with Rx packet data by the kernel.
    
    v2: Fixed potential crash in xsk_mmap.
    Signed-off-by: NMagnus Karlsson <magnus.karlsson@intel.com>
    Signed-off-by: NAlexei Starovoitov <ast@kernel.org>
    423f3832
Makefile 59 字节
新手
引导
客服 返回
顶部