[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1210291675-5234-1-git-send-email-allan.stephens@windriver.com>
Date: Thu, 8 May 2008 20:07:55 -0400
From: Allan Stephens <allan.stephens@...driver.com>
To: David Miller <davem@...emloft.net>
Cc: netdev@...r.kernel.org, allan.stephens@...driver.com
Subject: [PATCH net-2.6] [TIPC]: Increase buffer headroom to support gianfar
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@...driver.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
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists