Print this page
13230 i40e has duplicate traffic when used with bhyve/snoop running
@@ -226,10 +226,29 @@
ret = ECANCELED;
goto done;
}
+#if 1
+ /*
+ * XXX KEBE SAYS try this from Linux...
+ *
+ * Their comment says:
+ *
+ * set defport ON for Main VSI instead of true promisc
+ * this way we will get all unicast/multicast and VLAN
+ * promisc behavior but will not get VF or VMDq traffic
+ * replicated on the Main VSI.
+ */
+
+ ret = on ? i40e_aq_set_default_vsi(hw, I40E_DEF_VSI_SEID(i40e), NULL) :
+ i40e_aq_clear_default_vsi(hw, I40E_DEF_VSI_SEID(i40e), NULL);
+ if (ret == I40E_SUCCESS)
+ i40e->i40e_promisc_on = on;
+ else
+ err = EIO;
+#else
ret = i40e_aq_set_vsi_unicast_promiscuous(hw, I40E_DEF_VSI_SEID(i40e),
on, NULL, B_FALSE);
if (ret != I40E_SUCCESS) {
i40e_error(i40e, "failed to %s unicast promiscuity on "
"the default VSI: %d", on == B_TRUE ? "enable" : "disable",
@@ -269,10 +288,11 @@
err = EIO;
goto done;
} else {
i40e->i40e_promisc_on = on;
}
+#endif
done:
mutex_exit(&i40e->i40e_general_lock);
return (err);
}