]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/ice/base/ice_vlan_mode.c
net/ionic: cut down queue structure
[dpdk.git] / drivers / net / ice / base / ice_vlan_mode.c
index 2e4c3f62c4f760254fe9d98642fd947db31f3f8e..460c4f902b728c1a67ab3a38c71b3787b9945de6 100644 (file)
@@ -354,6 +354,12 @@ static enum ice_status ice_set_svm(struct ice_hw *hw)
  */
 enum ice_status ice_set_vlan_mode(struct ice_hw *hw)
 {
+       /* DCF only has the ability to query the VLAN mode. Setting the VLAN
+        * mode is done by the PF.
+        */
+       if (hw->dcf_enabled)
+               return ICE_SUCCESS;
+
        if (!ice_is_dvm_supported(hw))
                return ICE_SUCCESS;