diff options
author | Navdeep Parhar <np@FreeBSD.org> | 2018-06-01 01:05:34 +0000 |
---|---|---|
committer | Navdeep Parhar <np@FreeBSD.org> | 2018-06-01 01:05:34 +0000 |
commit | b9330ed7a291a55e83184456327df2dca5945bdd (patch) | |
tree | c9e2b46d1d40d3d0ee26597f99952d4dafe165b6 /sys/dev | |
parent | b824b2d67ae0821a71d7956284b6e3de939c6a9b (diff) | |
download | src-b9330ed7a291a55e83184456327df2dca5945bdd.tar.gz src-b9330ed7a291a55e83184456327df2dca5945bdd.zip |
cxgbe(4): Retire an old check.
Notes
Notes:
svn path=/head/; revision=334467
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/cxgbe/adapter.h | 5 | ||||
-rw-r--r-- | sys/dev/cxgbe/t4_l2t.c | 2 | ||||
-rw-r--r-- | sys/dev/cxgbe/t4_l2t.h | 3 | ||||
-rw-r--r-- | sys/dev/cxgbe/t4_main.c | 8 | ||||
-rw-r--r-- | sys/dev/cxgbe/t4_smt.c | 2 | ||||
-rw-r--r-- | sys/dev/cxgbe/t4_smt.h | 3 |
6 files changed, 0 insertions, 23 deletions
diff --git a/sys/dev/cxgbe/adapter.h b/sys/dev/cxgbe/adapter.h index 3940e4d5e1d3..298191ce7705 100644 --- a/sys/dev/cxgbe/adapter.h +++ b/sys/dev/cxgbe/adapter.h @@ -81,11 +81,6 @@ prefetch(void *x) #define CTLTYPE_U64 CTLTYPE_QUAD #endif -#if (__FreeBSD_version >= 900030) || \ - ((__FreeBSD_version >= 802507) && (__FreeBSD_version < 900000)) -#define SBUF_DRAIN 1 -#endif - struct adapter; typedef struct adapter adapter_t; diff --git a/sys/dev/cxgbe/t4_l2t.c b/sys/dev/cxgbe/t4_l2t.c index 11f5331e3441..bb683f375121 100644 --- a/sys/dev/cxgbe/t4_l2t.c +++ b/sys/dev/cxgbe/t4_l2t.c @@ -257,7 +257,6 @@ do_l2t_write_rpl(struct sge_iq *iq, const struct rss_header *rss, return (0); } -#ifdef SBUF_DRAIN static inline unsigned int vlan_prio(const struct l2t_entry *e) { @@ -335,4 +334,3 @@ skip: return (rc); } -#endif diff --git a/sys/dev/cxgbe/t4_l2t.h b/sys/dev/cxgbe/t4_l2t.h index 32758a884df0..21c392018fe8 100644 --- a/sys/dev/cxgbe/t4_l2t.h +++ b/sys/dev/cxgbe/t4_l2t.h @@ -106,9 +106,6 @@ t4_l2t_release(struct l2t_entry *e) atomic_add_int(&d->nfree, 1); } - -#ifdef SBUF_DRAIN int sysctl_l2t(SYSCTL_HANDLER_ARGS); -#endif #endif /* __T4_L2T_H */ diff --git a/sys/dev/cxgbe/t4_main.c b/sys/dev/cxgbe/t4_main.c index 9754d2167764..b04722b8cd82 100644 --- a/sys/dev/cxgbe/t4_main.c +++ b/sys/dev/cxgbe/t4_main.c @@ -559,7 +559,6 @@ static int sysctl_fec(SYSCTL_HANDLER_ARGS); static int sysctl_autoneg(SYSCTL_HANDLER_ARGS); static int sysctl_handle_t4_reg64(SYSCTL_HANDLER_ARGS); static int sysctl_temperature(SYSCTL_HANDLER_ARGS); -#ifdef SBUF_DRAIN static int sysctl_cctrl(SYSCTL_HANDLER_ARGS); static int sysctl_cim_ibq_obq(SYSCTL_HANDLER_ARGS); static int sysctl_cim_la(SYSCTL_HANDLER_ARGS); @@ -589,7 +588,6 @@ static int sysctl_tx_rate(SYSCTL_HANDLER_ARGS); static int sysctl_ulprx_la(SYSCTL_HANDLER_ARGS); static int sysctl_wcwr_stats(SYSCTL_HANDLER_ARGS); static int sysctl_tc_params(SYSCTL_HANDLER_ARGS); -#endif #ifdef TCP_OFFLOAD static int sysctl_tls_rx_ports(SYSCTL_HANDLER_ARGS); static int sysctl_tp_tick(SYSCTL_HANDLER_ARGS); @@ -5572,7 +5570,6 @@ t4_sysctls(struct adapter *sc) SYSCTL_ADD_INT(ctx, children, OID_AUTO, "core_vdd", CTLFLAG_RD, &sc->params.core_vdd, 0, "core Vdd (in mV)"); -#ifdef SBUF_DRAIN /* * dev.t4nex.X.misc. Marked CTLFLAG_SKIP to avoid information overload. */ @@ -5746,7 +5743,6 @@ t4_sysctls(struct adapter *sc) CTLTYPE_STRING | CTLFLAG_RD, sc, 0, sysctl_wcwr_stats, "A", "write combined work requests"); } -#endif #ifdef TCP_OFFLOAD if (is_offload(sc)) { @@ -6030,11 +6026,9 @@ cxgbe_sysctls(struct port_info *pi) &tc->flags, 0, "flags"); SYSCTL_ADD_UINT(ctx, children2, OID_AUTO, "refcount", CTLFLAG_RD, &tc->refcount, 0, "references to this class"); -#ifdef SBUF_DRAIN SYSCTL_ADD_PROC(ctx, children2, OID_AUTO, "params", CTLTYPE_STRING | CTLFLAG_RD, sc, (pi->port_id << 16) | i, sysctl_tc_params, "A", "traffic class parameters"); -#endif } /* @@ -6632,7 +6626,6 @@ sysctl_temperature(SYSCTL_HANDLER_ARGS) return (rc); } -#ifdef SBUF_DRAIN static int sysctl_cctrl(SYSCTL_HANDLER_ARGS) { @@ -8641,7 +8634,6 @@ done: return (rc); } -#endif #ifdef TCP_OFFLOAD static int diff --git a/sys/dev/cxgbe/t4_smt.c b/sys/dev/cxgbe/t4_smt.c index 12b59acda663..d803710321eb 100644 --- a/sys/dev/cxgbe/t4_smt.c +++ b/sys/dev/cxgbe/t4_smt.c @@ -287,7 +287,6 @@ do_smt_write_rpl(struct sge_iq *iq, const struct rss_header *rss, return (0); } -#ifdef SBUF_DRAIN static char smt_state(const struct smt_entry *e) { @@ -343,4 +342,3 @@ skip: return (rc); } -#endif diff --git a/sys/dev/cxgbe/t4_smt.h b/sys/dev/cxgbe/t4_smt.h index 7bd86845395a..59c8e0ef1c4f 100644 --- a/sys/dev/cxgbe/t4_smt.h +++ b/sys/dev/cxgbe/t4_smt.h @@ -84,9 +84,6 @@ t4_smt_release(struct smt_entry *e) } - -#ifdef SBUF_DRAIN int sysctl_smt(SYSCTL_HANDLER_ARGS); -#endif #endif /* __T4_SMT_H */ |