History

net/mlx5: Add query host params command

The QUERY_HOST_PARAMS command is used by an Embedded CPU Physical Function (ECPF) driver to identify and retrieve information about the PF on the host side. E.g, number of virtual functions and PCI BDF. The number of VFs can be changed on the fly, a function is added to query current number of VFs and will be used in downstream patches.

Bodong Wang committed 7 years ago

Commit c3a4e9f1 parent 22e939a4 files · +74 −0Browse files

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

Unified · Split

include/linux/mlx5/mlx5_ifc.h+41−0
@@ -142,6 +142,7 @@ enum { · 141 unmodified lines
142 MLX5_CMD_OP_QUERY_XRQ_DC_PARAMS_ENTRY = 0x725,142 MLX5_CMD_OP_QUERY_XRQ_DC_PARAMS_ENTRY = 0x725,
143 MLX5_CMD_OP_SET_XRQ_DC_PARAMS_ENTRY = 0x726,143 MLX5_CMD_OP_SET_XRQ_DC_PARAMS_ENTRY = 0x726,
144 MLX5_CMD_OP_QUERY_XRQ_ERROR_PARAMS = 0x727,144 MLX5_CMD_OP_QUERY_XRQ_ERROR_PARAMS = 0x727,
145 MLX5_CMD_OP_QUERY_HOST_PARAMS = 0x740,
145 MLX5_CMD_OP_QUERY_VPORT_STATE = 0x750,146 MLX5_CMD_OP_QUERY_VPORT_STATE = 0x750,
146 MLX5_CMD_OP_MODIFY_VPORT_STATE = 0x751,147 MLX5_CMD_OP_MODIFY_VPORT_STATE = 0x751,
147 MLX5_CMD_OP_QUERY_ESW_VPORT_CONTEXT = 0x752,148 MLX5_CMD_OP_QUERY_ESW_VPORT_CONTEXT = 0x752,
@@ -9522,4 +9523,44 @@ struct mlx5_ifc_mtrc_ctrl_bits { · 9374 unmodified lines
9522 u8 reserved_at_80[0x180];9523 u8 reserved_at_80[0x180];
9523};9524};
9524 9525
9526struct mlx5_ifc_host_params_context_bits {
9527 u8 host_number[0x8];
9528 u8 reserved_at_8[0x8];
9529 u8 host_num_of_vfs[0x10];
9530
9531 u8 reserved_at_20[0x10];
9532 u8 host_pci_bus[0x10];
9533
9534 u8 reserved_at_40[0x10];
9535 u8 host_pci_device[0x10];
9536
9537 u8 reserved_at_60[0x10];
9538 u8 host_pci_function[0x10];
9539
9540 u8 reserved_at_80[0x180];
9541};
9542
9543struct mlx5_ifc_query_host_params_in_bits {
9544 u8 opcode[0x10];
9545 u8 reserved_at_10[0x10];
9546
9547 u8 reserved_at_20[0x10];
9548 u8 op_mod[0x10];
9549
9550 u8 reserved_at_40[0x40];
9551};
9552
9553struct mlx5_ifc_query_host_params_out_bits {
9554 u8 status[0x8];
9555 u8 reserved_at_8[0x18];
9556
9557 u8 syndrome[0x20];
9558
9559 u8 reserved_at_40[0x40];
9560
9561 struct mlx5_ifc_host_params_context_bits host_params_context;
9562
9563 u8 reserved_at_280[0x180];
9564};
9565
9525#endif /* MLX5_IFC_H */9566#endif /* MLX5_IFC_H */

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