Skip to content

Missing validation for SR-IOV VF MTU exceeding parent PF MTU #178

@kanlkan

Description

@kanlkan

Description:

MTU can be configured via opaque.parameters.interface.mtu.
However, for SR-IOV VFs, it is currently possible to set an MTU larger than the parent PF’s MTU due to the lack of validation.

This can lead to inconsistent or invalid configurations.
It would be better to introduce validation to prevent this. Possible approaches include:

  1. Logging a warning and falling back to the PF’s MTU
  2. Logging an error and rejecting pod creation
  3. Logging only (no enforcement)

Environment:

  • Kubernetes: v1.35.3
  • containerd: v2.2.2
  • runc: v1.4.2
  • RDMA NIC: Mellanox ConnectX-6

Metadata

Metadata

Assignees

Labels

triage/acceptedIndicates an issue or PR is ready to be actively worked on.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions