From: Paul Durrant <paul.durrant@citrix.com>
To: xen-devel@lists.xensource.com
Cc: Paul Durrant <paul.durrant@citrix.com>
Subject: [PATCH] Re-define PKT_PROT_LEN to be big enough to handle maximal IPv4 and TCP options and phrase
Date: Tue, 14 Dec 2010 17:43:18 +0000 [thread overview]
Message-ID: <1292348602-6148-1-git-send-email-paul.durrant@citrix.com> (raw)
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
---
drivers/xen/netback/netback.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/xen/netback/netback.c b/drivers/xen/netback/netback.c
index c448675..1a4a20e 100644
--- a/drivers/xen/netback/netback.c
+++ b/drivers/xen/netback/netback.c
@@ -128,7 +128,7 @@ static inline int netif_get_page_ext(struct page *pg, unsigned int *_group, unsi
* packet processing on them (netfilter, routing, etc). 72 is enough
* to cover TCP+IP headers including options.
*/
-#define PKT_PROT_LEN 72
+#define PKT_PROT_LEN (ETH_HLEN + 4 + (15 * 4) + (15 * 4))
static inline pending_ring_idx_t pending_index(unsigned i)
{
--
1.5.6.5
next reply other threads:[~2010-12-14 17:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-14 17:43 Paul Durrant [this message]
2010-12-14 17:43 ` [PATCH] Make sure we only bump rx_packets when we're definitely going to call netif_rx_ni() Paul Durrant
2010-12-14 17:43 ` [PATCH] Remove the 500ms timeout to restart the netif queue. It is generally unhelpful as it results in Paul Durrant
2010-12-14 17:43 ` [PATCH] Add a missing test to tx_work_todo so that, when netback is using worker threads, net_tx_action() Paul Durrant
2010-12-14 17:43 ` [PATCH] There is no need for processing of the pending_inuse list to be within the dealloc_prod/cons Paul Durrant
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1292348602-6148-1-git-send-email-paul.durrant@citrix.com \
--to=paul.durrant@citrix.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).