From: Eric Dumazet <eric.dumazet@gmail.com>
To: "Pradeep A. Dalvi" <netdev@pradeepdalvi.com>
Cc: netdev@vger.kernel.org, "David S. Miller" <davem@davemloft.net>,
Christoph Hellwig <hch@lst.de>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/1] netdev/ethernet: dev_alloc_skb to netdev_alloc_skb
Date: Sat, 21 Jan 2012 16:53:58 +0100 [thread overview]
Message-ID: <1327161238.2574.3.camel@edumazet-laptop> (raw)
In-Reply-To: <1327156996-12505-1-git-send-email-netdev@pradeepdalvi.com>
Le samedi 21 janvier 2012 à 20:13 +0530, Pradeep A. Dalvi a écrit :
> Replaced deprecating dev_alloc_skb with netdev_alloc_skb in drivers/net/ethernet
>
> Signed-off-by: Pradeep A. Dalvi <netdev@pradeepdalvi.com>
> ---
...
> 114 files changed, 257 insertions(+), 203 deletions(-)
>
> diff --git a/drivers/net/ethernet/3com/3c501.c b/drivers/net/ethernet/3com/3c501.c
> index 68da81d..9ebc739 100644
> --- a/drivers/net/ethernet/3com/3c501.c
> +++ b/drivers/net/ethernet/3com/3c501.c
> @@ -702,7 +702,7 @@ static void el_receive(struct net_device *dev)
> */
>
> outb(AX_SYS, AX_CMD);
> - skb = dev_alloc_skb(pkt_len+2);
> + skb = netdev_alloc_skb(dev, pkt_len + NET_IP_ALIGN);
>
> /*
> * Start of frame
> diff --git a/drivers/net/ethernet/3com/3c509.c b/drivers/net/ethernet/3com/3c509.c
So the very first chunk of this huge patch is wrong, since it adds a
true bug. (You dont change the skb_reserve(skb, 2); later)
I stopped my review at this first chunk.
Please dont add NET_IP_ALIGN on drivers if you cant test the change
yourself.
Some hardware really need the hardcoded 2 value.
next prev parent reply other threads:[~2012-01-21 15:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-21 14:43 Pradeep A. Dalvi
2012-01-21 15:53 ` Eric Dumazet [this message]
2012-01-21 16:46 ` Pradeep A. Dalvi
2012-01-21 18:39 ` David Miller
2012-01-21 19:17 ` Pradeep A. Dalvi
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=1327161238.2574.3.camel@edumazet-laptop \
--to=eric.dumazet@gmail.com \
--cc=davem@davemloft.net \
--cc=hch@lst.de \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@pradeepdalvi.com \
--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
all inboxes | Powered by JetHome®