linux-uconsole/include/linux/mlx5
Eli Cohen 89a0e388c6 {net,vdpa}/mlx5: Configure interface MAC into mpfs L2 table
commit 7c9f131f36 upstream.

net/mlx5: Expose MPFS configuration API

MPFS is the multi physical function switch that bridges traffic between
the physical port and any physical functions associated with it. The
driver is required to add or remove MAC entries to properly forward
incoming traffic to the correct physical function.

We export the API to control MPFS so that other drivers, such as
mlx5_vdpa are able to add MAC addresses of their network interfaces.

The MAC address of the vdpa interface must be configured into the MPFS L2
address. Failing to do so could cause, in some NIC configurations, failure
to forward packets to the vdpa network device instance.

Fix this by adding calls to update the MPFS table.

CC: <mst@redhat.com>
CC: <jasowang@redhat.com>
CC: <virtualization@lists.linux-foundation.org>
Fixes: 1a86b377aa ("vdpa/mlx5: Add VDPA driver for supported mlx5 devices")
Signed-off-by: Eli Cohen <elic@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-06-03 09:00:36 +02:00
..
accel.h net/mlx5: Accel, Add core IPsec support for the Connect-X family 2020-07-16 16:36:42 -07:00
cq.h net/mlx5: Avoid RDMA file inclusion in core driver 2020-06-27 13:50:46 -07:00
device.h net/mlx5: Add support for fw live patch event 2020-10-09 12:06:53 -07:00
doorbell.h
driver.h Revert "RDMA/mlx5: Fix devlink deadlock on net namespace deletion" 2021-02-03 23:28:44 +01:00
eq.h
eswitch.h net/mlx5: E-switch, Use PF num in metadata reg c0 2020-09-30 21:26:28 -07:00
fs.h net/mlx5: Add NIC TX domain namespace 2020-10-12 15:37:44 -07:00
fs_helpers.h
mlx5_ifc.h net/mlx5: Fix PBMC register mapping 2021-04-14 08:42:11 +02:00
mlx5_ifc_fpga.h net/mlx5: fix spelling mistake "reserverd" -> "reserved" 2020-02-18 15:44:07 +02:00
mpfs.h {net,vdpa}/mlx5: Configure interface MAC into mpfs L2 table 2021-06-03 09:00:36 +02:00
port.h RDMA/mlx5: Delete duplicated mlx5_ptys_width enum 2020-09-17 19:33:03 +03:00
qp.h net/mlx5e: IPsec: Add TX steering rule per IPsec state 2020-10-12 15:37:45 -07:00
rsc_dump.h net/mlx5: Add support in query QP, CQ and MKEY segments 2020-06-23 17:26:10 +03:00
transobj.h net/mlx5: Update transobj.c new cmd interface 2020-04-23 21:42:16 +03:00
vport.h net/mlx5: Constify mac address pointer 2020-06-22 15:29:19 -07:00