summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2017-11-29 05:09:59 +0000
committerdlg <dlg@openbsd.org>2017-11-29 05:09:59 +0000
commitc45f4c08dc79129988149030069c6574d0ac0655 (patch)
tree35a1519efac202f211eda258a8eb0c53c692f29e
parentregen (diff)
downloadwireguard-openbsd-c45f4c08dc79129988149030069c6574d0ac0655.tar.xz
wireguard-openbsd-c45f4c08dc79129988149030069c6574d0ac0655.zip
turns out you dont have to configure a vsi as the default in a veb.
what a waste of two days.
-rw-r--r--sys/dev/pci/if_ixl.c40
1 files changed, 1 insertions, 39 deletions
diff --git a/sys/dev/pci/if_ixl.c b/sys/dev/pci/if_ixl.c
index 409fab4b174..1afb970fa5b 100644
--- a/sys/dev/pci/if_ixl.c
+++ b/sys/dev/pci/if_ixl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ixl.c,v 1.3 2017/11/29 03:38:03 dlg Exp $ */
+/* $OpenBSD: if_ixl.c,v 1.4 2017/11/29 05:09:59 dlg Exp $ */
/*
* Copyright (c) 2013-2015, Intel Corporation
@@ -1087,7 +1087,6 @@ static int ixl_restart_an(struct ixl_softc *);
static int ixl_hmc(struct ixl_softc *);
static int ixl_get_vsi(struct ixl_softc *);
static int ixl_set_vsi(struct ixl_softc *);
-static int ixl_set_default_vsi(struct ixl_softc *);
static int ixl_get_link_status(struct ixl_softc *);
static int ixl_set_link_status(struct ixl_softc *,
const struct ixl_aq_desc *);
@@ -1714,11 +1713,6 @@ ixl_up(struct ixl_softc *sc)
ixl_wr(sc, I40E_QTX_CTL(0), I40E_QTX_CTL_PF_QUEUE |
(sc->sc_pf_id << I40E_QTX_CTL_PF_INDX_SHIFT));
- if (ixl_set_default_vsi(sc) != 0) {
- /* error printed by ixl_set_default_vsi */
- goto clr;
- }
-
(void)ixl_rxr_enable(sc, sc->sc_rx_ring);
(void)ixl_txr_enable(sc, sc->sc_tx_ring);
@@ -1726,10 +1720,6 @@ ixl_up(struct ixl_softc *sc)
return (0);
-clr:
- ixl_txr_unconfig(sc, sc->sc_tx_ring);
- ixl_rxr_unconfig(sc, sc->sc_rx_ring);
- ixl_txr_free(sc, sc->sc_tx_ring);
free_rxr:
ixl_rxr_free(sc, sc->sc_rx_ring);
ret:
@@ -3205,34 +3195,6 @@ ixl_set_vsi(struct ixl_softc *sc)
return (0);
}
-static int
-ixl_set_default_vsi(struct ixl_softc *sc)
-{
- struct ixl_aq_desc iaq;
- struct ixl_aq_vsi_promisc_param *param;
- uint16_t retval;
-
- memset(&iaq, 0, sizeof(iaq));
- iaq.iaq_opcode = htole16(IXL_AQ_OP_SET_VSI_PROMISC);
-
- param = (struct ixl_aq_vsi_promisc_param *)&iaq.iaq_param;
- param->flags = htole16(IXL_AQ_VSI_PROMISC_FLAG_DFLT);
- param->valid_flags = htole16(IXL_AQ_VSI_PROMISC_FLAG_DFLT);
- param->seid = sc->sc_seid;
-
- if (ixl_atq_poll(sc, &iaq, 250) != 0) {
- printf("%s: SET VSI PROMISC timeout\n", DEVNAME(sc));
- return (-1);
- }
- retval = lemtoh16(&iaq.iaq_retval);
- if (retval != IXL_AQ_RC_OK) {
- printf("%s: SET VSI PROMISC error %u\n", DEVNAME(sc), retval);
- return (-1);
- }
-
- return (0);
-}
-
static const struct ixl_phy_type *
ixl_search_phy_type(uint8_t phy_type)
{