History

net/mlx5: Introduce VHCA tunnel device capability

When using the device emulation feature (introduced in Bluefield-1 SOC), a privileged function (the device emulation manager) will be able to create a channel to execute commands on behalf of the emulated function. This channel will be a general object of type VHCA_TUNNEL that will have a unique ID for each emulated function. This ID will be passed in each cmd that will be issued by the emulation SW in a well known offset in the command header. This channel is needed since the emulated function doesn't have a normal command interface to the HCA HW, but some basic configuration for that function is needed (e.g. initialize and enable the HCA). For that matter, a specific command-set was defined and only those commands will be issued by the HCA.

Max Gurtovoy committed 7 years ago

Commit 1dd73821 parent f8efee01 file · +4 −2Browse files

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

Unified · Split

include/linux/mlx5/mlx5_ifc.h+4−2
@@ -1390,7 +1390,9 @@ struct mlx5_ifc_cmd_hca_cap_bits { · 1389 unmodified lines
13901390 u8 reserved_at_6c8[0x28];
13911391 u8 sf_base_id[0x10];
13921392
1393− u8 reserved_at_700[0x100];
1393+ u8 reserved_at_700[0x80];
1394+ u8 vhca_tunnel_commands[0x40];
1395+ u8 reserved_at_7c0[0x40];
13941396 };
13951397
13961398 enum mlx5_flow_destination_type {
@@ -9694,7 +9696,7 @@ struct mlx5_ifc_general_obj_in_cmd_hdr_bits { · 8297 unmodified lines
96949696 u8 opcode[0x10];
96959697 u8 uid[0x10];
96969698
9697− u8 reserved_at_20[0x10];
9699+ u8 vhca_tunnel_id[0x10];
96989700 u8 obj_type[0x10];
96999701
97009702 u8 obj_id[0x20];

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