[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4806B2FA.8020805@cn.fujitsu.com>
Date: Thu, 17 Apr 2008 10:16:26 +0800
From: Wang Chen <wangchen@...fujitsu.com>
To: Stephen Hemminger <shemminger@...tta.com>
CC: Jeff Garzik <jgarzik@...ox.com>,
Francois Romieu <romieu@...zoreil.com>, netdev@...r.kernel.org
Subject: Re: [PATCH 06/13] sis190: use netdev_alloc_skb
Stephen Hemminger said the following on 2008-4-17 7:37:
> +static int sis190_try_rx_copy(struct net_device *dev,
> + struct sk_buff **sk_buff, int pkt_size,
> + struct RxDesc *desc, int rx_buf_sz)
> {
> - int ret = -1;
> + int ret = 01;
>
why not : ret = 1
> if (pkt_size < rx_copybreak) {
> struct sk_buff *skb;
>
> - skb = dev_alloc_skb(pkt_size + NET_IP_ALIGN);
> + skb = netdev_alloc_skb(dev, pkt_size + 2);
> if (skb) {
> - skb_reserve(skb, NET_IP_ALIGN);
> + skb_reserve(skb, 2);
why?
[PATCH 02/13] atl1: use netdev_alloc_skb
using NET_IP_ALIGN, not 2.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists