summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2017-01-19 14:06:50 +0200
committerJukka Rissanen <jukka.rissanen@linux.intel.com>2017-01-20 16:23:20 +0200
commit700c313ce72b01ba26a5bcf8f51ad1771a796334 (patch)
treed5a644ac69dee0cadfb0a11c79d4e630ac24367e /include
parentd9b30d302971eacfd49e4abf517b6ec2d582f765 (diff)
net: buf: Use TCP sent_list variable only if needed
If TCP is not enabled, then compile out the TCP retransmit list variable that is part of net_buf struct. Change-Id: I07e188454d9be76ac93fe96405f00a89b967668a Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/net/buf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/buf.h b/include/net/buf.h
index 51668379c..602c1dd9b 100644
--- a/include/net/buf.h
+++ b/include/net/buf.h
@@ -401,8 +401,10 @@ struct net_buf {
struct net_buf *frags;
};
+#if defined(CONFIG_NET_TCP)
/** List pointer used for TCP retransmit buffering */
sys_snode_t sent_list;
+#endif /* CONFIG_NET_TCP */
/** Reference count. */
uint8_t ref;