From: Christian Brunner <chb@muc.de>
To: netdev@vger.kernel.org
Subject: [PATCH] ixgbe: fix truesize calculation when merging active tail into lro skb
Date: Mon, 13 Feb 2012 14:52:48 +0100 [thread overview]
Message-ID: <20120213135248.GA23457@sir.fritz.box> (raw)
I'm seeing some page allocation failures with the ixgbe driver under heavy
load. While looking after it, I came accoss the truesize handling. I suspect,
that there is a small misstake in ixgbe_merge_active_tail(). (But I'm not
really sure).
Truesize allocation of the skb may be larger than skb->len, because
ixgbe is allocating PAGE_SIZE/2 for received fragments. Hence we
should use the truesize of the tail when merging.
Signed-off-by: Christian Brunner <chb@muc.de>
---
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
index a42b0b2..c4d25af 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
@@ -1222,7 +1222,7 @@ static inline struct sk_buff *ixgbe_merge_active_tail(struct sk_buff *tail)
head->len += tail->len;
head->data_len += tail->len;
- head->truesize += tail->len;
+ head->truesize += tail->truesize;
IXGBE_CB(tail)->head = NULL;
--
1.7.1
next reply other threads:[~2012-02-13 13:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-13 13:52 Christian Brunner [this message]
2012-02-13 14:12 ` [PATCH] ixgbe: fix truesize calculation when merging active tail into lro skb Eric Dumazet
2012-02-13 21:43 ` Jeff Kirsher
2012-02-14 17:21 ` Alexander Duyck
2012-02-14 17:39 ` Eric Dumazet
2012-02-14 18:47 ` Alexander Duyck
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=20120213135248.GA23457@sir.fritz.box \
--to=chb@muc.de \
--cc=netdev@vger.kernel.org \
/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).