|   | 
      | 
  
  
      | 
      | 
  
 
     | 
    | 
  
  
     | 
    | 
  
  
    |   | 
      | 
  
  
    | 
         
xen-devel
[Xen-devel] Re: [RFC PATCH 34/35] Add the Xen virtual network	device dri
 
| 
To:  | 
Stephen Hemminger <shemminger@xxxxxxxx> | 
 
| 
Subject:  | 
[Xen-devel] Re: [RFC PATCH 34/35] Add the Xen virtual network	device driver. | 
 
| 
From:  | 
Chris Wright <chrisw@xxxxxxxxxxxx> | 
 
| 
Date:  | 
Tue, 9 May 2006 16:39:11 -0700 | 
 
| 
Cc:  | 
xen-devel@xxxxxxxxxxxxxxxxxxx, Ian Pratt <ian.pratt@xxxxxxxxxxxxx>,	netdev@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx,	Chris Wright <chrisw@xxxxxxxxxxxx>, virtualization@xxxxxxxxxxxxxx,	Christian Limpach <Christian.Limpach@xxxxxxxxxxxx> | 
 
| 
Delivery-date:  | 
Tue, 09 May 2006 16:36:24 -0700 | 
 
| 
Envelope-to:  | 
www-data@xxxxxxxxxxxxxxxxxx | 
 
| 
In-reply-to:  | 
<20060509115633.36b4879e@xxxxxxxxxxxxxxxxxxxxx> | 
 
| 
List-help:  | 
<mailto:xen-devel-request@lists.xensource.com?subject=help> | 
 
| 
List-id:  | 
Xen developer discussion <xen-devel.lists.xensource.com> | 
 
| 
List-post:  | 
<mailto:xen-devel@lists.xensource.com> | 
 
| 
List-subscribe:  | 
<http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>,	<mailto:xen-devel-request@lists.xensource.com?subject=subscribe> | 
 
| 
List-unsubscribe:  | 
<http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>,	<mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe> | 
 
| 
References:  | 
<20060509084945.373541000@xxxxxxxxxxxx>	<20060509085201.446830000@xxxxxxxxxxxx>	<20060509115633.36b4879e@xxxxxxxxxxxxxxxxxxxxx> | 
 
| 
Sender:  | 
xen-devel-bounces@xxxxxxxxxxxxxxxxxxx | 
 
| 
User-agent:  | 
Mutt/1.4.2.1i | 
 
 
 
* Stephen Hemminger (shemminger@xxxxxxxx) wrote:
> The stuff in /proc could easily just be added attributes to the class_device 
> kobject
> of the net device (and then show up in sysfs).
Agreed, it's on the todo list to drop proc support there.  Thought that
was marked in the patch.
> > +#define GRANT_INVALID_REF  0
> > +
> > +#define NET_TX_RING_SIZE __RING_SIZE((struct netif_tx_sring *)0, PAGE_SIZE)
> > +#define NET_RX_RING_SIZE __RING_SIZE((struct netif_rx_sring *)0, PAGE_SIZE)
> > +
> > +static inline void init_skb_shinfo(struct sk_buff *skb)
> > +{
> > +   atomic_set(&(skb_shinfo(skb)->dataref), 1);
> > +   skb_shinfo(skb)->nr_frags = 0;
> > +   skb_shinfo(skb)->frag_list = NULL;
> > +}
> 
> Could you use existing sk_buff_head instead of inventing your
> own skb queue?
Hmm, there is some standard skb_queue_tail happening.  I don't have a
clear idea what you mean.
> > +   u8 mac[ETH_ALEN];
> 
> Isn't mac address already stored in dev->dev_addr and/or dev->perm_addr?
Yes, I don't see the reason to keep in twice.  It's basically a temp
buffer, but it certainly appears we can eliminate it.
thanks,
-chris
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
 |   
 
 | 
    | 
  
  
    |   | 
    |