Skip to content

Zero-copy in most NICs? #1447

@gorgonical

Description

@gorgonical

I couldn't find anything in the docs or the code that confirmed this question, so I figured I would ask. I would have asked in the Slack but the invite link is broken.

Does Snabb provide zero-copy semantics for NICs? I know that the memory module provides DMA memory for the NIC to access and the usage in some parts of the code such as:

src/apps/intel_mp/intel_mp.lua:555:   memory.dma_alloc(ffi.sizeof(rxdesc_ring_t)))
src/apps/intel_mp/intel_mp.lua:625:   memory.dma_alloc(ffi.sizeof(txdesc_ring_t)))

indicate that the DMA memory is being used for the NIC queues, but I wanted to be sure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions