Skip to content

[REQUEST] Convert the single threads operation in Virtual Switch to DPDK approach #1485

@Irene-123

Description

@Irene-123

Hi there,

I have went through the contribution guide and have a request to introduce DPDK or Linux Packet Buffer approach

Summary: The code in vslib/HostInterfaceInfo.cpp utilises read & write operations. This code essentially creates a separate thread for each switch port and does read() and write() of one packet at a time to copy packets from the virtual linux network interfaces and the virtual switch port TAP devices. This is very slow and adds a lot of latency.

Requirement/Reason: Low latency as read() write() operations create single new threads

Approach: Can I try to see if Linux Packet Buffer could be a more optimized approach or even DPDK (which is my target, as it's the fastest)?

I'm also new to the SONiC software & community around, would appreciate if I could get some direction or help :)
Also, apologies if any of my point above is incorrect, I have tried to frame the issue with the best of my knowledge

Thank you

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