can't move mellanox interface to switchdev when SR-IOV disable

Bug #2020409 reported by Moshe Levi
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Netplan
Fix Committed
Medium
Unassigned
netplan.io (Ubuntu)
New
Undecided
Unassigned

Bug Description

I am looking on the netplan implementation of switchdev [1]. The current code assume that we can move to switchdev only if SR-IOV enabled.
This assumption is incorrect, as we can move to switchdev even if SR-IOV is disabled.

There 2 use-case come to mind:

1. VF Lag with Subfunction (you don't need SR-IOV to enable Subfunction)
2. VF Lag creation. It better to first move the PF (physicals function) to switchdev mode before creating the SR-IOV VF. In this case you don't need to unbind and bind the VFs, which mean you save time at boot.

Who will be the best person at canonical side so help use fix this issues?

[1] - https://github.com/canonical/netplan/blob/3279c57e8b1745be0d19119b4ad1a061c327593e/netplan/cli/sriov.py#L373-L459

Tags: sru-next
Revision history for this message
Moshe Levi (moshele) wrote :
Revision history for this message
Lukas Märdian (slyon) wrote :
Changed in netplan:
importance: Undecided → Medium
status: New → Triaged
tags: added: foundations-todo
Revision history for this message
Lukas Märdian (slyon) wrote :
tags: removed: foundations-todo
Changed in netplan:
status: Triaged → Fix Committed
Lukas Märdian (slyon)
Changed in netplan:
status: Fix Committed → Fix Released
tags: added: sru-next
Changed in netplan:
status: Fix Released → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.