| 
    
 [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH RFC 4/4] xen-netfront: Add support for multiple queues
 On 16/01/14 00:27, Wei Liu wrote: On Wed, Jan 15, 2014 at 04:23:24PM +0000, Andrew J. Bennieston wrote: [...]+/* Module parameters */ +unsigned int xennet_max_queues = 16; +module_param(xennet_max_queues, uint, 0644); +This looks quite arbitrary as well. Arbitrary, but less arbitrary than the netback parameter. I wanted to pick a value that was large enough to accommodate most sensible backend-provided limits, but not so large that it wasted resources. It is necessary only because I have to call alloc_etherdev_mq() long before I can read the maximum number of queues from XenStore. This value gets used there, so I wanted it to be at least as big as anything sensible that a backend might provide. static const struct ethtool_ops xennet_ethtool_ops;[...] I'll reword it. + goto error; + } + snprintf(path, pathsize, "%s/queue-%u", + dev->nodename, queue->number); + } + else + path = (char *)dev->nodename; OK. +[...] Yes, I'll add that check. Andrew. Wei. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel 
 
 
  | 
  
![]()  | 
            
         Lists.xenproject.org is hosted with RackSpace, monitoring our  |