summaryrefslogtreecommitdiffstats
path: root/sys/pci
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2011-01-25 22:18:00 +0000
committeryongari <yongari@FreeBSD.org>2011-01-25 22:18:00 +0000
commit3688752787a172c28a6853e2b60b9d37fdddb076 (patch)
tree9d7cbe0b5dfd14531edec959ebcbb1b7a523771e /sys/pci
parent1290d38ac50b3afa7e5781d9d97346a1042c736c (diff)
downloadFreeBSD-src-3688752787a172c28a6853e2b60b9d37fdddb076.zip
FreeBSD-src-3688752787a172c28a6853e2b60b9d37fdddb076.tar.gz
Prefer MSI-X to MSI on controllers that support MSI-X. All
recent PCIe controllers(RTL8102E or later and RTL8168/8111C or later) supports either 2 or 4 MSI-X messages. Unfortunately vendor did not publicly release RSS related information yet. However switching to MSI-X is one-step forward to support RSS.
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/if_rlreg.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/pci/if_rlreg.h b/sys/pci/if_rlreg.h
index 5a0c5e6..b31cf0c 100644
--- a/sys/pci/if_rlreg.h
+++ b/sys/pci/if_rlreg.h
@@ -864,6 +864,7 @@ struct rl_softc {
struct resource *rl_res;
int rl_res_id;
int rl_res_type;
+ struct resource *rl_res_pba;
struct resource *rl_irq[RL_MSI_MESSAGES];
void *rl_intrhand[RL_MSI_MESSAGES];
device_t rl_miibus;
@@ -908,6 +909,7 @@ struct rl_softc {
#define RL_FLAG_FASTETHER 0x0100
#define RL_FLAG_CMDSTOP 0x0200
#define RL_FLAG_MACRESET 0x0400
+#define RL_FLAG_MSIX 0x0800
#define RL_FLAG_WOLRXENB 0x1000
#define RL_FLAG_MACSLEEP 0x2000
#define RL_FLAG_PCIE 0x4000
OpenPOWER on IntegriCloud