Skip to content

Want less/finer-grained locking in the datapath #435

Description

@FelixMcFelix

Currently, individual ports are wrapped in a KMutex, which is locked on:

  1. Packet transmission
  2. Packet receipt
  3. Periodic UFT expiry
  4. Reconfiguration of user-driven network state: Firewall rules, NAT/External IPs, DHCP Params, ...

Performance-wise, what I'm most concerned about is the total shared lock between 1. and 2., although 3. has caused minor issues (#426). It would be worth spending some time thinking about how this overlap of locks can be minimised overall -- keeping in mind that we do need pairwise flow installation to both In/Out tables, shared TCP state, etc.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions