drivers/net/ethernet/mellanox/mlx5/core/en/rep

NVIDIA/Mellanox ConnectX eSwitch representors for mlx5 Ethernet

Provides the eSwitch "representor" network interfaces for NVIDIA/Mellanox ConnectX-5 and newer Ethernet adapters: the per-virtual-function shadow netdevs that let the host steer and hardware-offload traffic between SR-IOV VFs and the physical port. It is what makes Open vSwitch offload flows directly onto the NIC in modern cloud and NFV deployments.

keep conf=0.92 deploy=medium replacement=none subsystem=net category=networking-ethernet
92%

recommendation

It should stay in the kernel because the code underpins SR-IOV switchdev and Open vSwitch hardware offload on NVIDIA/Mellanox ConnectX-5, ConnectX-6, and ConnectX-7 adapters, all of which are still sold and deployed in datacenters and NFV setups in 2025. Upstream activity is healthy, with substantive fixes landing as recently as October 2025, and there is no sign of any deprecation effort.

repository signals

7 files
2,236 source lines
56 commits, 5y
+1,211 / −544 lines added / removed, 5y
20 authors, 5y
monthly commits · 2021-04-21 → 2026-04-21 · 56 total · active in 25/61 months
2021 2022 2023 2024 2025 2026 2021-04: 5 commits · +222 −29 2021-05: 3 commits · +10 −15 2021-06: 4 commits · +330 −121 2021-07: 1 commit · +87 −38 2021-08: 4 commits · +20 −8 2021-09: 2 commits · +4 −7 2021-10: 2 commits · +34 −28 2021-11: 0 commits · +0 −0 2021-12: 2 commits · +4 −1 2022-01: 4 commits · +20 −22 2022-02: 0 commits · +0 −0 2022-03: 0 commits · +0 −0 2022-04: 0 commits · +0 −0 2022-05: 0 commits · +0 −0 2022-06: 1 commit · +6 −0 2022-07: 1 commit · +116 −1 2022-08: 0 commits · +0 −0 2022-09: 1 commit · +0 −1 2022-10: 0 commits · +0 −0 2022-11: 2 commits · +34 −3 2022-12: 0 commits · +0 −0 2023-01: 1 commit · +0 −4 2023-02: 7 commits · +43 −207 2023-03: 2 commits · +42 −23 2023-04: 1 commit · +1 −0 2023-05: 1 commit · +4 −5 2023-06: 0 commits · +0 −0 2023-07: 2 commits · +18 −3 2023-08: 1 commit · +11 −0 2023-09: 1 commit · +14 −0 2023-10: 0 commits · +0 −0 2023-11: 0 commits · +0 −0 2023-12: 0 commits · +0 −0 2024-01: 0 commits · +0 −0 2024-02: 0 commits · +0 −0 2024-03: 0 commits · +0 −0 2024-04: 0 commits · +0 −0 2024-05: 0 commits · +0 −0 2024-06: 0 commits · +0 −0 2024-07: 0 commits · +0 −0 2024-08: 0 commits · +0 −0 2024-09: 0 commits · +0 −0 2024-10: 0 commits · +0 −0 2024-11: 0 commits · +0 −0 2024-12: 0 commits · +0 −0 2025-01: 0 commits · +0 −0 2025-02: 0 commits · +0 −0 2025-03: 1 commit · +5 −7 2025-04: 0 commits · +0 −0 2025-05: 0 commits · +0 −0 2025-06: 0 commits · +0 −0 2025-07: 0 commits · +0 −0 2025-08: 0 commits · +0 −0 2025-09: 1 commit · +4 −3 2025-10: 1 commit · +1 −5 2025-11: 0 commits · +0 −0 2025-12: 0 commits · +0 −0 2026-01: 0 commits · +0 −0 2026-02: 2 commits · +12 −12 2026-03: 0 commits · +0 −0 2026-04: 0 commits · +0 −0

sources

  1. git.kernel.org

    Upstream touched this directory on 2025-10-28 (`net/mlx5: Use common mlx5_same_hw_devs function`), indicating current maintenance rather than abandonment.

  2. git.kernel.org

    A 2025-03-13 bugfix specifically for representor bridge handling (`Bridge, fix the crash caused by LAG state check`) shows active functional fixes in this code.

  3. docs.nvidia.com

    NVIDIA documents this feature as supported on ConnectX-5 and above, and describes switchdev mode creating VF representor netdevices, matching this directory's role.

  4. docs.nvidia.com

    ConnectX-7 was still being documented as a current product in 2025/2026, supporting modern offload/datacenter deployments on the same mlx5 family.

codex reasoning notes (technical)

Real driver subdirectory for mlx5 representor/eSwitch datapath, not a helper-only asset directory. Evidence of ongoing upstream attention came from shell `git -c safe.directory=... log -- drivers/net/ethernet/mellanox/mlx5/core/en/rep`, which showed substantive 2025 path-local fixes; kernel.org commit URLs were then added via canonical recall for those exact hashes. Web search found NVIDIA docs; the ASAP2 page was opened directly and states ConnectX-5+ support plus representor netdevice creation, and the ConnectX-7 manual URL came from search results as proof the hardware family remains current. `lei` was unavailable in this environment and a `site:lore.kernel.org/all` web search did not surface any active removal/deprecation thread, so there is no removal signal to override the strong maintenance signal. This code serves an active but specialized deployment niche (SR-IOV/switchdev/OVS offload in datacenter and NFV environments), so keep rather than deprecate.