net/i40e: fix port start during config restore
authorXiao Zhang <xiao.zhang@intel.com>
Fri, 28 Feb 2020 03:22:04 +0000 (11:22 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 18 Mar 2020 09:21:41 +0000 (10:21 +0100)
commit496608a079ccc339900f67077d88fd7bcbf56d04
treef826f79842bae867dc4e91920e6cc790dcb1d62d
parentb8d96c71ff56f21f15c3e446d74a68ef770e09fa
net/i40e: fix port start during config restore

If configuring VF promiscuous mode is not supported, return '-ENOTSUP'
error code in '.promiscuous_enable/disable' dev_ops.

This is to fix the port start during config restore, where if
'.promiscuous_enable/disable' dev_ops exists and return any value other
than '-ENOTSUP', start will fail.

Same is done for '.allmulticast_enable/disable' dev_ops.

Fixes: ddc7cb0d9453 ("net/i40e: re-program promiscuous mode on VF interface")
Cc: stable@dpdk.org
Signed-off-by: Xiao Zhang <xiao.zhang@intel.com>
Reviewed-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/i40e/i40e_ethdev_vf.c