aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/cxgbe/adapter.h
diff options
context:
space:
mode:
authorNavdeep Parhar <np@FreeBSD.org>2018-09-25 05:52:42 +0000
committerNavdeep Parhar <np@FreeBSD.org>2018-09-25 05:52:42 +0000
commitea710848dca328f3d617ce52c5553e20d7de671c (patch)
treeb69f2611f59a222a1821a56d29e186f1f6d0cf2d /sys/dev/cxgbe/adapter.h
parentfd8cf3be5f3a1bfbe6b9b07bc610f3b1ce9361f4 (diff)
Notes
Diffstat (limited to 'sys/dev/cxgbe/adapter.h')
-rw-r--r--sys/dev/cxgbe/adapter.h47
1 files changed, 0 insertions, 47 deletions
diff --git a/sys/dev/cxgbe/adapter.h b/sys/dev/cxgbe/adapter.h
index 866bace84c361..f23d16479ee8f 100644
--- a/sys/dev/cxgbe/adapter.h
+++ b/sys/dev/cxgbe/adapter.h
@@ -289,7 +289,6 @@ struct port_info {
uint8_t rx_e_chan_map; /* rx TP e-channel bitmap */
struct link_config link_cfg;
- struct link_config old_link_cfg;
struct ifmedia media;
struct timeval last_refreshed;
@@ -1073,52 +1072,6 @@ t4_os_set_hw_addr(struct port_info *pi, uint8_t hw_addr[])
bcopy(hw_addr, pi->vi[0].hw_addr, ETHER_ADDR_LEN);
}
-static inline bool
-is_10G_port(const struct port_info *pi)
-{
-
- return ((pi->link_cfg.supported & FW_PORT_CAP_SPEED_10G) != 0);
-}
-
-static inline bool
-is_25G_port(const struct port_info *pi)
-{
-
- return ((pi->link_cfg.supported & FW_PORT_CAP_SPEED_25G) != 0);
-}
-
-static inline bool
-is_40G_port(const struct port_info *pi)
-{
-
- return ((pi->link_cfg.supported & FW_PORT_CAP_SPEED_40G) != 0);
-}
-
-static inline bool
-is_100G_port(const struct port_info *pi)
-{
-
- return ((pi->link_cfg.supported & FW_PORT_CAP_SPEED_100G) != 0);
-}
-
-static inline int
-port_top_speed(const struct port_info *pi)
-{
-
- if (pi->link_cfg.supported & FW_PORT_CAP_SPEED_100G)
- return (100);
- if (pi->link_cfg.supported & FW_PORT_CAP_SPEED_40G)
- return (40);
- if (pi->link_cfg.supported & FW_PORT_CAP_SPEED_25G)
- return (25);
- if (pi->link_cfg.supported & FW_PORT_CAP_SPEED_10G)
- return (10);
- if (pi->link_cfg.supported & FW_PORT_CAP_SPEED_1G)
- return (1);
-
- return (0);
-}
-
static inline int
tx_resume_threshold(struct sge_eq *eq)
{