From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
To: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: davem@davemloft.net, netdev@vger.kernel.org, gospo@redhat.com,
sassmann@redhat.com
Subject: Re: [net-next 3/4] e1000: look in the page and not in skb->data for the last byte
Date: Thu, 17 May 2012 04:50:17 -0700 [thread overview]
Message-ID: <1337255417.2714.49.camel@jtkirshe-mobl> (raw)
In-Reply-To: <4FB4E34F.2050004@linutronix.de>
[-- Attachment #1: Type: text/plain, Size: 1547 bytes --]
On Thu, 2012-05-17 at 13:38 +0200, Sebastian Andrzej Siewior wrote:
> On 05/17/2012 01:27 PM, Jeff Kirsher wrote:
> > diff --git a/drivers/net/ethernet/intel/e1000/e1000_main.c b/drivers/net/ethernet/intel/e1000/e1000_main.c
> > index fefbf4d..6ac80c8 100644
> > --- a/drivers/net/ethernet/intel/e1000/e1000_main.c
> > +++ b/drivers/net/ethernet/intel/e1000/e1000_main.c
> > @@ -4066,7 +4066,11 @@ static bool e1000_clean_jumbo_rx_irq(struct e1000_adapter *adapter,
> > /* errors is only valid for DD + EOP descriptors */
> > if (unlikely((status& E1000_RXD_STAT_EOP)&&
> > (rx_desc->errors& E1000_RXD_ERR_FRAME_ERR_MASK))) {
> > - u8 last_byte = *(skb->data + length - 1);
> > + u8 *mapped;
> > + u8 last_byte;
> > +
> > + mapped = kmap_atomic(buffer_info->page);
> > + last_byte = *(mapped + length - 1);
> > if (TBI_ACCEPT(hw, status, rx_desc->errors, length,
> > last_byte)) {
> > spin_lock_irqsave(&adapter->stats_lock,
>
> This is not what I've sent. My original patch [0] hat a unmap as well.
> One comment was, that kmap_atomic() is too much overhead because the
> page can never be highmem. So I changed it to page_address() [1].
>
> [0] http://permalink.gmane.org/gmane.linux.drivers.e1000.devel/10008
> [1] http://permalink.gmane.org/gmane.linux.drivers.e1000.devel/10012
>
> Sebastian
Your correct, I apologize. This was my fault, I applied your v1 of the
patch and then realized there was a v2.
I will re-send the series with the correct patch.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2012-05-17 11:50 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-17 11:27 [net-next 0/4][pull request] Intel Wired LAN Driver Updates Jeff Kirsher
2012-05-17 11:27 ` [net-next 1/4] e1000e: fix typo in definition of E1000_CTRL_EXT_FORCE_SMBUS Jeff Kirsher
2012-05-17 11:27 ` [net-next 2/4] e1000: remove workaround for Errata 23 from jumbo alloc Jeff Kirsher
2012-05-17 14:40 ` Ben Hutchings
2012-05-17 19:32 ` David Miller
2012-05-17 11:27 ` [net-next 3/4] e1000: look in the page and not in skb->data for the last byte Jeff Kirsher
2012-05-17 11:38 ` Sebastian Andrzej Siewior
2012-05-17 11:50 ` Jeff Kirsher [this message]
2012-05-17 11:56 ` Sebastian Andrzej Siewior
2012-05-17 12:02 ` Jeff Kirsher
2012-05-17 11:27 ` [net-next 4/4] igb: Disable the BMC-to-OS Watchdog Enable bit for DMAC Jeff Kirsher
2012-05-17 11:51 ` [net-next 0/4][pull request] Intel Wired LAN Driver Updates Jeff Kirsher
2012-05-17 19:12 ` David Miller
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=1337255417.2714.49.camel@jtkirshe-mobl \
--to=jeffrey.t.kirsher@intel.com \
--cc=bigeasy@linutronix.de \
--cc=davem@davemloft.net \
--cc=gospo@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=sassmann@redhat.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).