History

net/mlx5: E-Switch, Split VF and special vports for offloads mode

When driver is entering offloads mode, there are two major tasks to do: initialize flow steering and create representors. Flow steering should make sure enough flow table/group spaces are reserved for all reps. Representors will be created in a group, all or none. With the introduction of ECPF, flow steering should still reserve the same spaces. But, the representors are not always loaded/unloaded in a single piece. Once ECPF is in offloads mode, it will get the number of VF changing event from host PF. In such scenario, only the VF reps should be loaded/unloaded, not the reps for special vports (such as the uplink vport). Thus, when entering offloads mode, driver should specify the total number of reps, and the number of VF reps separately. When leaving offloads mode, the cleanup should use the information self-contained in eswitch such as number of VFs. This patch doesn't change any functionality.

Bodong Wang committed 7 years ago

Commit c9b99ab1 parent eca8cc34 files · +48 −22Browse files

Showing the changes to include/linux (1 of 4 files). Show all

Unified · Split

include/linux/mlx5/vport.h+1−0
@@ -53,6 +53,7 @@ enum { · 52 unmodified lines
5353
5454 enum {
5555 MLX5_VPORT_PF = 0x0,
56+ MLX5_VPORT_FIRST_VF = 0x1,
5657 MLX5_VPORT_ECPF = 0xfffe,
5758 MLX5_VPORT_UPLINK = 0xffff
5859 };

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t