git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/sfc/base: add API to retrieve sensor limits
[dpdk.git]
/
drivers
/
net
/
sfc
/
base
/
hunt_nic.c
diff --git
a/drivers/net/sfc/base/hunt_nic.c
b/drivers/net/sfc/base/hunt_nic.c
index
e39f817
..
16ea81d
100644
(file)
--- a/
drivers/net/sfc/base/hunt_nic.c
+++ b/
drivers/net/sfc/base/hunt_nic.c
@@
-36,7
+36,7
@@
hunt_nic_get_required_pcie_bandwidth(
goto out;
}
goto out;
}
- if (port_modes & (1 << TLV_PORT_MODE_40G_40G)) {
+ if (port_modes & (1
U
<< TLV_PORT_MODE_40G_40G)) {
/*
* This needs the full PCIe bandwidth (and could use
* more) - roughly 64 Gbit/s for 8 lanes of Gen3.
/*
* This needs the full PCIe bandwidth (and could use
* more) - roughly 64 Gbit/s for 8 lanes of Gen3.
@@
-45,9
+45,9
@@
hunt_nic_get_required_pcie_bandwidth(
EFX_PCIE_LINK_SPEED_GEN3, &bandwidth)) != 0)
goto fail1;
} else {
EFX_PCIE_LINK_SPEED_GEN3, &bandwidth)) != 0)
goto fail1;
} else {
- if (port_modes & (1 << TLV_PORT_MODE_40G)) {
+ if (port_modes & (1
U
<< TLV_PORT_MODE_40G)) {
max_port_mode = TLV_PORT_MODE_40G;
max_port_mode = TLV_PORT_MODE_40G;
- } else if (port_modes & (1 << TLV_PORT_MODE_10G_10G_10G_10G)) {
+ } else if (port_modes & (1
U
<< TLV_PORT_MODE_10G_10G_10G_10G)) {
max_port_mode = TLV_PORT_MODE_10G_10G_10G_10G;
} else {
/* Assume two 10G ports */
max_port_mode = TLV_PORT_MODE_10G_10G_10G_10G;
} else {
/* Assume two 10G ports */