numam-dpdk/drivers/net/failsafe
Ophir Munk e28d4ee4f0 net/failsafe: fix VLAN stripping configuration
failsafe device has vlan stripping configured at startup however once
a sub device is found as non-capable of vlan-stripping failsafe
updates it configuration and removes vlan stripping from it.
This update occurs only once at startup. Following a later plugin
attempt and in case of vlan stripping mismatch between failsafe
configuration and device capability - failsafe cannot recover and the
device remains constantly in plug out state.

The sequence of events leading to this situation is described as
follows:
1. Start testpmd with failsafe where mlx4 is a sub device (not capable
of vlan stripping). Expected printout:
PMD: net_failsafe: Disabling VLAN stripping offload
2. Execute:
testpmd> port stop all
testpmd> port config all max-pkt-len 2048
testpmd> port start all
3. Do a plug out (e.g. disable sriov)
4. Do a plug in (e.g. enable sriov)
5. Expected result: failsafe successfully configures and starts its sub
devices
Actual result: failsafe is continuously failing with these messages:
PMD: net_failsafe: VLAN stripping offload requested but not supported by
sub_device 0
PMD: net_failsafe: device already configured, cannot fix live
configuration
PMD: net_failsafe: Unable to synchronize sub device state

Root cause analysis: at startup failsafe removes vlan stripping from its
configuration. After executing "port config all max-pkt-len 2048"
testpmd marks failsafe in need for configuration update.
After executing "port start all" testpmd overrides failsafe
configuration with its own configuration which includes vlan stripping

During the plugin attempt failsafe refuses to update its configuration
by removing vlan stripping since it has already updated its
configuration at startup.

The fix is for failsafe to stop validation and disabling non-supported
offloads in its sub-devices.

Fixes: bbc6a53dda ("net/failsafe: support Rx offload capabilities")
Cc: stable@dpdk.org

Signed-off-by: Ophir Munk <ophirmu@mellanox.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
2017-11-04 00:22:51 +01:00
..
failsafe_args.c net/failsafe: fix errno set on command execution 2017-10-06 02:49:47 +02:00
failsafe_eal.c net/failsafe: fix PCI devices init 2017-10-26 02:33:01 +02:00
failsafe_ether.c net/failsafe: add timestamp to stats snapshot 2017-10-26 02:33:01 +02:00
failsafe_flow.c net/failsafe: support flow API isolation mode 2017-07-19 16:25:43 +03:00
failsafe_ops.c net/failsafe: fix VLAN stripping configuration 2017-11-04 00:22:51 +01:00
failsafe_private.h net/failsafe: add timestamp to stats snapshot 2017-10-26 02:33:01 +02:00
failsafe_rxtx.c net/failsafe: fix Rx clean race 2017-10-27 01:05:55 +02:00
failsafe.c net/failsafe: support link status change event 2017-07-19 16:25:43 +03:00
Makefile mk: do not generate LDLIBS from directory dependencies 2017-10-24 02:14:57 +02:00
rte_pmd_failsafe_version.map net/failsafe: add fail-safe PMD 2017-07-19 16:25:42 +03:00