On Tue, 2006-08-08 at 13:50 -0700, Auke Kok wrote:
> Peter Zijlstra wrote:
> > Update the driver to make use of the NETIF_F_MEMALLOC feature.
> >
> > Signed-off-by: Peter Zijlstra <[email protected]>
> > Signed-off-by: Daniel Phillips <[email protected]>
> >
> > ---
> > drivers/net/e1000/e1000_main.c | 11 +++++------
> > 1 file changed, 5 insertions(+), 6 deletions(-)
> >
> > Index: linux-2.6/drivers/net/e1000/e1000_main.c
> > ===================================================================
> > --- linux-2.6.orig/drivers/net/e1000/e1000_main.c
> > +++ linux-2.6/drivers/net/e1000/e1000_main.c
> > @@ -4020,8 +4020,6 @@ e1000_alloc_rx_buffers(struct e1000_adap
> > */
> > skb_reserve(skb, NET_IP_ALIGN);
> >
> > - skb->dev = netdev;
> > -
> > buffer_info->skb = skb;
> > buffer_info->length = adapter->rx_buffer_len;
> > map_skb:
> > @@ -4135,8 +4136,6 @@ e1000_alloc_rx_buffers_ps(struct e1000_a
> > */
> > skb_reserve(skb, NET_IP_ALIGN);
> >
> > - skb->dev = netdev;
> > -
> > buffer_info->skb = skb;
> > buffer_info->length = adapter->rx_ps_bsize0;
> > buffer_info->dma = pci_map_single(pdev, skb->data,
> > -
>
> can we really delete these??
The new {,__}netdev_alloc_skb() will set it when the allocation
succeeds.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]