net/ice: fix promiscuous mode
When device promiscuous mode has already been enabled, should not return error if user re-enable it. Fixes: c945e4bf9063 ("net/ice: support promiscuous mode") Cc: stable@dpdk.org Signed-off-by: Ying A Wang <ying.a.wang@intel.com> Acked-by: Qiming Yang <qiming.yang@intel.com>
This commit is contained in:
parent
6ff04bc5cf
commit
ec8e7598bb
@ -2775,7 +2775,9 @@ ice_promisc_enable(struct rte_eth_dev *dev)
|
||||
ICE_PROMISC_MCAST_RX | ICE_PROMISC_MCAST_TX;
|
||||
|
||||
status = ice_set_vsi_promisc(hw, vsi->idx, pmask, 0);
|
||||
if (status != ICE_SUCCESS)
|
||||
if (status == ICE_ERR_ALREADY_EXISTS)
|
||||
PMD_DRV_LOG(DEBUG, "Promisc mode has already been enabled");
|
||||
else if (status != ICE_SUCCESS)
|
||||
PMD_DRV_LOG(ERR, "Failed to enable promisc, err=%d", status);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user