linux_dsm_epyc7002/include/linux/mlx5
Bodong Wang cbc44e76bf net/mlx5: E-Switch, Properly refer to host PF vport as other vport
Commands referring to vports use the following scheme:

1. When referring to my own vport, put 0 in vport and 0 in other_vport.
2. When referring to another vport, put the vport number of the
   referred vport and put 1 in other_vport. It was assumed that driver
   is accessing other vport when vport number is greater than 0.

With the above scheme, the case that ECPF eswitch manager is trying
to access host PF vport will fall over with scheme 1 as the vport
number is 0. This is apparently wrong as driver is trying to refer
other vport.

As such usage can only happen in the eswitch context, change relevant
functions to provide other vport input properly.

Signed-off-by: Bodong Wang <bodong@mellanox.com>
Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
2019-02-15 17:25:56 -08:00
..
accel.h net/mlx5: IPSec, Add support for ESN 2018-03-07 15:54:36 -08:00
cmd.h
cq.h net/mlx5e: Use CQE padding for Ethernet CQs 2018-12-11 14:52:20 -08:00
device.h net/mlx5: Add host params change event 2019-02-14 12:14:42 -08:00
doorbell.h IB/mlx5: Use blue flame register allocator in mlx5_ib 2017-01-09 20:25:08 +02:00
driver.h net/mlx5: Relocate vport macros to the vport header file 2019-02-14 12:14:42 -08:00
eq.h net/mlx5: EQ, Introduce atomic notifier chain subscription API 2018-11-26 13:39:33 -08:00
eswitch.h net/mlx5: E-Switch, Avoid setup attempt if not being e-switch manager 2018-06-26 15:26:29 -07:00
fs_helpers.h {net,IB}/mlx5: Add ipsec helper 2018-04-04 12:06:27 -06:00
fs.h net/mlx5: Support extended destination format in flow steering command 2018-12-10 14:00:08 -08:00
mlx5_ifc_fpga.h net/mlx5: Accel, add TLS rx offload routines 2018-07-16 00:13:11 -07:00
mlx5_ifc.h net/mlx5: Add new fields to Port Type and Speed register 2019-02-14 12:14:42 -08:00
port.h net/mlx5: Add support to ext_* fields introduced in Port Type and Speed register 2019-02-14 12:14:42 -08:00
qp.h net/mlx5: Add interface to hold and release core resources 2018-11-12 22:20:29 +02:00
transobj.h net/mlx5: Move SRQ functions to RDMA part 2018-12-04 09:14:30 +02:00
vport.h net/mlx5: E-Switch, Properly refer to host PF vport as other vport 2019-02-15 17:25:56 -08:00