linux-stable/include/linux/mlx5
Bodong Wang 5ccf2770e8 net/mlx5: Don't handle VF func change if host PF is disabled
When ECPF eswitch manager is at offloads mode, it monitors functions
changed event from host PF side and acts according to the number of
VFs enabled/disabled.

As ECPF and host PF work in two independent hosts, it's possible that
host PF OS reboots but ECPF system is still kept on and continues
monitoring events from host PF. When kernel from host PF side is
booting, PCI iov driver does sriov_init and compute_max_vf_buses by
iterating over all valid num of VFs. This triggers FLR and generates
functions changed events, even though host PF HCA is not enabled at
this time. However, ECPF is not aware of this information, and still
handles these events as usual. ECPF system will see massive number of
reps are created, but destroyed immediately once creation finished.

To eliminate this noise, a bit is added to host parameter context to
indicate host PF is disabled. ECPF will not handle the VF changed
event if this bit is set.

Signed-off-by: Bodong Wang <bodong@mellanox.com>
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
2019-07-01 16:40:30 -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 net/mlx5: E-Switch, Replace host_params event with functions_changed event 2019-05-31 12:28:14 -07:00
doorbell.h net/mlx5: Remove spinlock support from mlx5_write64 2019-04-02 12:49:37 -07:00
driver.h net/mlx5: Rename mlx5_pci_dev_type to mlx5_coredev_type 2019-07-01 16:40:30 -07:00
eq.h net/mlx5: Add EQ enable/disable API 2019-06-13 10:59:49 -07:00
eswitch.h {IB, net}/mlx5: E-Switch, Use index of rep for vport to IB port mapping 2019-07-01 16:40:30 -07:00
fs.h net/mlx5e: Specifying known origin of packets matching the flow 2019-06-26 12:01:28 -07:00
fs_helpers.h
mlx5_ifc.h net/mlx5: Don't handle VF func change if host PF is disabled 2019-07-01 16:40:30 -07:00
mlx5_ifc_fpga.h net/mlx5: Accel, add TLS rx offload routines 2018-07-16 00:13:11 -07:00
port.h net/mlx5e: ethtool, Add support for EEPROM high pages query 2019-05-01 14:39:16 -07:00
qp.h net/mlx5: Convert mkey_table to XArray 2019-06-24 16:44:40 -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