Re: [PATCH v3 net-next 1/2] net: allow large number of rx queues

2014-12-04 Thread Pankaj Gupta
> > On Wed, Dec 03, 2014 at 12:49:36PM +0530, Pankaj Gupta wrote: > > netif_alloc_rx_queues() uses kcalloc() to allocate memory > > for "struct netdev_queue *_rx" array. > > If we are doing large rx queue allocation kcalloc() might > > fail, so this patch does a fallback to vzalloc(). > > Similar

Re: [PATCH v3 net-next 1/2] net: allow large number of rx queues

2014-12-03 Thread Michael S. Tsirkin
On Wed, Dec 03, 2014 at 12:49:36PM +0530, Pankaj Gupta wrote: > netif_alloc_rx_queues() uses kcalloc() to allocate memory > for "struct netdev_queue *_rx" array. > If we are doing large rx queue allocation kcalloc() might > fail, so this patch does a fallback to vzalloc(). > Similar implementation

[PATCH v3 net-next 1/2] net: allow large number of rx queues

2014-12-02 Thread Pankaj Gupta
netif_alloc_rx_queues() uses kcalloc() to allocate memory for "struct netdev_queue *_rx" array. If we are doing large rx queue allocation kcalloc() might fail, so this patch does a fallback to vzalloc(). Similar implementation is done for tx queue allocation in netif_alloc_netdev_queues(). We avoi