[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+Dx6HY92Z8KtDXf73O3QMWLj__+Q2g7PxjiZ7omn+tuh8YK5A@mail.gmail.com>
Date: Tue, 24 Jan 2012 00:49:32 +0530
From: "Pradeep A. Dalvi" <netdev@...deepdalvi.com>
To: Joe Perches <joe@...ches.com>
Cc: netdev@...r.kernel.org, "David S. Miller" <davem@...emloft.net>,
Christoph Hellwig <hch@....de>, linux-kernel@...r.kernel.org,
Eric Dumazet <eric.dumazet@...il.com>
Subject: Re: [PATCH/RESEND] drivers/net/ethernet: dev_alloc_skb to netdev_alloc_skb
On Tue, Jan 24, 2012 at 12:10 AM, Joe Perches <joe@...ches.com> wrote:
> On Mon, 2012-01-23 at 23:58 +0530, Pradeep A. Dalvi wrote:
>> Replaced deprecating dev_alloc_skb with netdev_alloc_skb in drivers/net/ethernet
>> - Removed extra skb->dev = dev after netdev_alloc_skb
> []
>> diff --git a/drivers/net/ethernet/amd/lance.c b/drivers/net/ethernet/amd/lance.c
> []
>> @@ -871,13 +871,12 @@ lance_init_ring(struct net_device *dev, gfp_t gfp)
>> struct sk_buff *skb;
>> void *rx_buff;
>>
>> - skb = alloc_skb(PKT_BUF_SZ, GFP_DMA | gfp);
>> + skb = netdev_alloc_skb(dev, PKT_BUF_SZ);
>
> This change seems suspect.
> I stopped reading here.
>
> Perhaps you should break this large patch
> into multiple separate patches.
>
> The trivial, obviously correct
> and the possibly broken.
Not really sure what made you suspect something in here. If you could
help me understand possibly broken scenarios, would essentially be
helpful. Thanks in advance!
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists