Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F101970740
D26334.id76681.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D26334.id76681.diff
View Options
Index: sys/dev/cxgbe/t4_sge.c
===================================================================
--- sys/dev/cxgbe/t4_sge.c
+++ sys/dev/cxgbe/t4_sge.c
@@ -301,7 +301,9 @@
static int sysctl_uint16(SYSCTL_HANDLER_ARGS);
static int sysctl_bufsizes(SYSCTL_HANDLER_ARGS);
#ifdef RATELIMIT
+#if defined(INET) || defined(INET6)
static inline u_int txpkt_eo_len16(u_int, u_int, u_int);
+#endif
static int ethofld_fw4_ack(struct sge_iq *, const struct rss_header *,
struct mbuf *);
#endif
@@ -1508,12 +1510,14 @@
return (0);
}
+#if defined(INET) || defined(INET6)
static inline int
sort_before_lro(struct lro_ctrl *lro)
{
return (lro->lro_mbuf_max != 0);
}
+#endif
static inline uint64_t
last_flit_to_ns(struct adapter *sc, uint64_t lf)
@@ -2239,6 +2243,7 @@
return (m->m_pkthdr.PH_loc.eight[1]);
}
+#if defined(INET) || defined(INET6)
static inline void
set_mbuf_eo_nsegs(struct mbuf *m, uint8_t nsegs)
{
@@ -2246,6 +2251,7 @@
M_ASSERTPKTHDR(m);
m->m_pkthdr.PH_loc.eight[1] = nsegs;
}
+#endif
static inline int
mbuf_eo_len16(struct mbuf *m)
@@ -2259,6 +2265,7 @@
return (n);
}
+#if defined(INET) || defined(INET6)
static inline void
set_mbuf_eo_len16(struct mbuf *m, uint8_t len16)
{
@@ -2266,6 +2273,7 @@
M_ASSERTPKTHDR(m);
m->m_pkthdr.PH_loc.eight[2] = len16;
}
+#endif
static inline int
mbuf_eo_tsclk_tsoff(struct mbuf *m)
@@ -2275,6 +2283,7 @@
return (m->m_pkthdr.PH_loc.eight[3]);
}
+#if defined(INET) || defined(INET6)
static inline void
set_mbuf_eo_tsclk_tsoff(struct mbuf *m, uint8_t tsclk_tsoff)
{
@@ -2282,6 +2291,7 @@
M_ASSERTPKTHDR(m);
m->m_pkthdr.PH_loc.eight[3] = tsclk_tsoff;
}
+#endif
static inline int
needs_eo(struct cxgbe_snd_tag *cst)
@@ -5832,6 +5842,7 @@
}
#ifdef RATELIMIT
+#if defined(INET) || defined(INET6)
/*
* len16 for a txpkt WR with a GL. Includes the firmware work request header.
*/
@@ -5855,6 +5866,7 @@
done:
return (howmany(n, 16));
}
+#endif
#define ETID_FLOWC_NPARAMS 6
#define ETID_FLOWC_LEN (roundup2((sizeof(struct fw_flowc_wr) + \
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 6, 11:35 PM (19 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14501826
Default Alt Text
D26334.id76681.diff (2 KB)
Attached To
Mode
D26334: cxgbe: Apply more checks for INET and INET6
Attached
Detach File
Event Timeline
Log In to Comment