mirror-linux/include/linux/mlx5
Parav Pandit 02f3afd975 net/mlx5: E-Switch, Correct type to u16 for vport_num and int for vport_index
To avoid any ambiguity between vport index and vport number,
rename functions that had vport, to vport_num or vport_index appropriately.

vport_num is u16 hence change mlx5_eswitch_index_to_vport_num() return
type to u16.

vport_index is an int in vport array. Hence change input type of vport
index in mlx5_eswitch_index_to_vport_num() to int.

Correct multiple eswitch representor interfaces use type u16 of
rep->vport as type int vport_index.

Send vport FW commands with correct eswitch u16 vport_num instead
host int vport_index.

Fixes: 5ae5162066 ("net/mlx5: E-Switch, Assign a different position for uplink rep and vport")
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Vu Pham <vuhuong@mellanox.com>
Reviewed-by: Bodong Wang <bodong@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
2019-05-17 13:16:47 -07:00
..
accel.h
cmd.h
cq.h net/mlx5: Remove spinlock support from mlx5_write64 2019-04-02 12:49:37 -07:00
device.h Merge branch 'mlx5-next' of git://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux 2019-05-01 13:57:48 -07:00
doorbell.h net/mlx5: Remove spinlock support from mlx5_write64 2019-04-02 12:49:37 -07:00
driver.h 5.2 Merge Window pull request 2019-05-09 09:02:46 -07:00
eq.h
eswitch.h net/mlx5: E-Switch, Correct type to u16 for vport_num and int for vport_index 2019-05-17 13:16:47 -07:00
fs.h net/mlx5: Add support in RDMA RX steering 2019-04-29 16:55:05 -07:00
fs_helpers.h
mlx5_ifc.h Merge branch 'mlx5-next' of git://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux 2019-05-01 13:57:48 -07:00
mlx5_ifc_fpga.h
port.h net/mlx5e: ethtool, Add support for EEPROM high pages query 2019-05-01 14:39:16 -07:00
qp.h net/mlx5e: XDP, Inline small packets into the TX MPWQE in XDP xmit flow 2019-04-23 12:09:20 -07:00
transobj.h net/mlx5: Introduce new TIR creation core API 2019-04-24 12:33:37 -07:00
vport.h net/mlx5: Remove unused mlx5_query_nic_vport_vlans 2019-05-01 14:39:16 -07:00