netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-2.6] [TIPC]: Increase buffer headroom to support gianfar
@ 2008-05-09  0:07 Allan Stephens
  2008-05-09  0:15 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Allan Stephens @ 2008-05-09  0:07 UTC (permalink / raw)
  To: David Miller; +Cc: netdev, allan.stephens

This patch increases the headroom TIPC reserves in each sk_buff
to 24 bytes, due to the 8 byte FCB used by gianfar.

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
---
 net/tipc/core.h |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/net/tipc/core.h b/net/tipc/core.h
index 325404f..cc6eca1 100644
--- a/net/tipc/core.h
+++ b/net/tipc/core.h
@@ -280,14 +280,20 @@ static inline void k_term_timer(struct timer_list *timer)
  * TIPC message buffer code
  *
  * TIPC message buffer headroom reserves space for a link-level header
- * (in case the message is sent off-node),
- * while ensuring TIPC header is word aligned for quicker access
+ * (in case the message is sent off-node).
  *
- * The largest header currently supported is 18 bytes, which is used when
- * the standard 14 byte Ethernet header has 4 added bytes for VLAN info
+ * Headroom is currently set to 24 bytes to facilitate support of
+ * the following header formats:
+ *
+ * - Ethernet header (14 bytes)
+ * - Ethernet header + VLAN info (14 + 4 bytes)
+ * - Ethernet header + gianfar FCB info (14 + 8 bytes)
+ *
+ * Note: Headroom is always a multiple of 4 to ensure the TIPC header fields
+ *       are word aligned for quicker access
  */
 
-#define BUF_HEADROOM 20u
+#define BUF_HEADROOM 24u
 
 struct tipc_skb_cb {
 	void *handle;
-- 
1.5.3.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-05-09  0:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-09  0:07 [PATCH net-2.6] [TIPC]: Increase buffer headroom to support gianfar Allan Stephens
2008-05-09  0:15 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).