linux/drivers/infiniband/hw/mlx5
Bodong Wang f8e8fa0262 net/mlx5: E-Switch, Centralize repersentor reg/unreg to eswitch driver
Eswitch has two users: IB and ETH. They both register repersentors
when mlx5 interface is added, and unregister the repersentors when
mlx5 interface is removed. Ideally, each driver should only deal with
the entities which are unique to itself. However, current IB and ETH
drivers have to perform the following eswitch operations:

1. When registering, specify how many vports to register. This number
   is the same for both drivers which is the total available vport
   numbers.
2. When unregistering, specify the number of registered vports to do
   unregister. Also, unload the repersentors which are already loaded.

It's unnecessary for eswitch driver to hands out the control of above
operations to individual driver users, as they're not unique to each
driver. Instead, such operations should be centralized to eswitch
driver. This consolidates eswitch control flow, and simplified IB and
ETH driver.

This patch doesn't change any functionality.

Signed-off-by: Bodong Wang <bodong@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
2019-02-15 17:25:58 -08:00
..
ah.c RDMA: Mark if destroy address handle is in a sleepable context 2018-12-19 16:28:03 -07:00
cmd.c RDMA/mad: Reduce MAD scope to mlx5_ib only 2019-01-15 10:02:29 +02:00
cmd.h RDMA/mad: Reduce MAD scope to mlx5_ib only 2019-01-15 10:02:29 +02:00
cong.c IB/mlx5: fix uaccess beyond "count" in debugfs read/write handlers 2018-07-09 13:15:12 -06:00
cq.c Merge branch 'mlx5-next' into rdma.git 2018-12-20 13:24:50 -07:00
devx.c 4.21 merge window pull request 2018-12-28 14:57:10 -08:00
doorbell.c IB/mlx5: Fix Mellanox copyright note 2015-04-02 16:33:42 -04:00
flow.c RDMA/mlx5: Fix flow creation on representors 2019-01-25 11:58:06 -07:00
gsi.c RDMA, core and ULPs: Declare ib_post_send() and ib_post_recv() arguments const 2018-07-30 20:09:34 -06:00
ib_rep.c net/mlx5: E-Switch, Centralize repersentor reg/unreg to eswitch driver 2019-02-15 17:25:58 -08:00
ib_rep.h IB/mlx5: Use unified register/load function for uplink and VF vports 2019-02-14 12:14:41 -08:00
ib_virt.c IB/mlx5: Restore IB guid/policy for virtual functions 2017-07-24 10:34:28 -04:00
Kconfig net/mlx5: Fix tristate and description for MLX5 module 2018-07-18 14:33:25 -07:00
mad.c RDMA/mad: Reduce MAD scope to mlx5_ib only 2019-01-15 10:02:29 +02:00
main.c IB/mlx5: Add support for 50Gbps per lane link modes 2019-02-14 12:14:42 -08:00
Makefile net/mlx5: Move SRQ functions to RDMA part 2018-12-04 09:14:30 +02:00
mem.c RDMA/umem: Get rid of struct ib_umem.odp_data 2018-09-21 11:54:46 -04:00
mlx5_ib.h net/mlx5: Make mlx5_cmd_exec_cb() a safe API 2019-01-24 14:25:26 +02:00
mr.c net/mlx5: Make mlx5_cmd_exec_cb() a safe API 2019-01-24 14:25:26 +02:00
odp.c IB/mlx5: Fix how advise_mr() launches async work 2019-01-21 14:39:29 -07:00
qp.c RDMA/mlx5: Fix check for supported user flags when creating a QP 2019-01-21 14:20:08 -07:00
srq_cmd.c RDMA/mlx5: Unfold modify RMP function 2018-12-04 09:26:00 +02:00
srq.c RDMA: Cleanup undesired pd->uobject usage 2018-12-18 19:15:48 -07:00
srq.h RDMA/mlx5: Initialize SRQ tables on mlx5_ib 2018-12-04 09:25:50 +02:00