diff options
author | Jonathan Matthew <jmatthew@cvs.openbsd.org> | 2019-02-01 06:11:17 +0000 |
---|---|---|
committer | Jonathan Matthew <jmatthew@cvs.openbsd.org> | 2019-02-01 06:11:17 +0000 |
commit | b6c5f4c8c16719f2bb1adc2f7fc488ee45b6e87e (patch) | |
tree | 1a55a4aac9ce1f1ba31c4668b8efc90bb4b78490 /sys | |
parent | 666732e8bdff49716cf57ec971f0f550af9876fd (diff) |
fix up calculation of our physical function id, making the second port
on dual port cards work much better.
ok dlg@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/if_ixl.c | 5 |
1 files changed, 1 insertions, 4 deletions
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 */ |