From b6c5f4c8c16719f2bb1adc2f7fc488ee45b6e87e Mon Sep 17 00:00:00 2001 From: Jonathan Matthew Date: Fri, 1 Feb 2019 06:11:17 +0000 Subject: fix up calculation of our physical function id, making the second port on dual port cards work much better. ok dlg@ --- sys/dev/pci/if_ixl.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'sys') diff --git a/sys/dev/pci/if_ixl.c b/sys/dev/pci/if_ixl.c index c4356ab65e5..8c65c1a3148 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.18 2019/01/29 01:41:29 dlg Exp $ */ +/* $OpenBSD: if_ixl.c,v 1.19 2019/02/01 06:11:16 jmatthew Exp $ */ /* * Copyright (c) 2013-2015, Intel Corporation @@ -1418,9 +1418,6 @@ ixl_attach(struct device *parent, struct device *self, void *aux) ari >>= I40E_GLPCI_CAPSUP_ARI_EN_SHIFT; func = ixl_rd(sc, I40E_PF_FUNC_RID); - func &= I40E_GLPCI_CAPSUP_ARI_EN_MASK; - func >>= I40E_GLPCI_CAPSUP_ARI_EN_SHIFT; - sc->sc_pf_id = func & (ari ? 0xff : 0x7); /* initialise the adminq */ -- cgit v1.2.3