summaryrefslogtreecommitdiffstats
path: root/fs/bfs
diff options
context:
space:
mode:
authorBodong Wang2019-01-30 06:13:13 +0100
committerSaeed Mahameed2019-02-16 02:25:58 +0100
commita3888f33db9f55f401ad315481af251d168e57dd (patch)
treeda1571d3c2cc728cf805cadf36b63cb1b607a4e7 /fs/bfs
parentnet/mlx5: E-Switch, Consider ECPF vport depends on eswitch ownership (diff)
downloadkernel-qcow2-linux-a3888f33db9f55f401ad315481af251d168e57dd.tar.gz
kernel-qcow2-linux-a3888f33db9f55f401ad315481af251d168e57dd.tar.xz
kernel-qcow2-linux-a3888f33db9f55f401ad315481af251d168e57dd.zip
net/mlx5: E-Switch, Load/unload VF reps according to event from host PF
When host PF changes the number of VFs, the ECPF esw driver will get a FW event. It should query the number of VFs enabled by host PF and update the VF reps accordingly. Note that host PF can't change the number of VFs dynamically, it has to reset the number of VFs to 0 before changing to a new positive number. The host event is registered when driver is moving to switchdev mode, and it's the last step to do in esw_offloads_init. It's unregistered and the work queue is flushed when driver quits from switchdev mode. In this way, the host event and devlink command are serialized. When driver is enabling switchdev mode, pay attention to the following two facts: 1. Host PF must not have VF initialized as the flow table in ECPF has ENCAP enabled as default. Such flow table can't be created with existing initialized VFs. 2. ECPF doesn't know how many VFs the host PF will enable, ECPF offloads flow steering shall create the flow table/groups based on the max number of VFs possibly supported by host PF. Signed-off-by: Bodong Wang <bodong@mellanox.com> Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'fs/bfs')
0 files changed, 0 insertions, 0 deletions