ice: Set trusted VF as default VSI when setting allmulti on
authorBrett Creeley <brett.creeley@intel.com>
Thu, 17 Sep 2020 20:13:37 +0000 (13:13 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 22 Feb 2021 19:18:39 +0000 (11:18 -0800)
commit37b52be260024069f7f5bdcf304b5d72f77b022a
tree48f0442e7bbc5df62c743516c353dd80c42c34f9
parent7dcf7aa01c7b9f18727cbe0f9cb4136f1c6cdcc2
ice: Set trusted VF as default VSI when setting allmulti on

Currently the PF will only set a trusted VF as the default VSI when it
requests FLAG_VF_UNICAST_PROMISC over VIRTCHNL. However, when
FLAG_VF_MULTICAST_PROMISC is set it's expected that the trusted VF will
see multicast packets that don't have a matching destination MAC in the
devices internal switch. Fix this by setting the trusted VF as the
default VSI if either FLAG_VF_UNICAST_PROMISC or
FLAG_VF_MULTICAST_PROMISC is set.

Fixes: 01b5e89aab49 ("ice: Add VF promiscuous support")
Signed-off-by: Brett Creeley <brett.creeley@intel.com>
Tested-by: Tony Brelinski <tonyx.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c