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

This patch increases the headroom TIPC reserves in each sk_buff
to accommodate the largest possible link level device header.

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

diff --git a/net/tipc/core.h b/net/tipc/core.h
index 325404f..5a0e487 100644
--- a/net/tipc/core.h
+++ b/net/tipc/core.h
@@ -279,15 +279,14 @@ 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
+ * TIPC message buffer headroom reserves space for the worst-case
+ * link-level device header (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
+ * Note: Headroom should be a multiple of 4 to ensure the TIPC header fields
+ *       are word aligned for quicker access
  */
 
-#define BUF_HEADROOM 20u
+#define BUF_HEADROOM LL_MAX_HEADER
 
 struct tipc_skb_cb {
 	void *handle;
-- 
1.5.3.2


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

* Re: [PATCH net-2.6] [TIPC]: Increase buffer header to support worst-case device
  2008-05-09  0:34 [PATCH net-2.6] [TIPC]: Increase buffer header to support worst-case device Allan Stephens
@ 2008-05-09  4:38 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2008-05-09  4:38 UTC (permalink / raw)
  To: allan.stephens; +Cc: netdev

From: Allan Stephens <allan.stephens@windriver.com>
Date: Thu,  8 May 2008 20:34:02 -0400

> This patch increases the headroom TIPC reserves in each sk_buff
> to accommodate the largest possible link level device header.
> 
> Signed-off-by: Allan Stephens <allan.stephens@windriver.com>

Applied, thanks Allan.

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

end of thread, other threads:[~2008-05-09  4:38 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:34 [PATCH net-2.6] [TIPC]: Increase buffer header to support worst-case device Allan Stephens
2008-05-09  4:38 ` 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).