Re: [RFC 1/4] net: allow large number of rx queues

2014-08-18 Thread Pankaj Gupta
> Hello. > > On 08/18/2014 05:37 PM, 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: [RFC 1/4] net: allow large number of rx queues

2014-08-18 Thread Sergei Shtylyov
Hello. On 08/18/2014 05:37 PM, 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 is done for tx

[RFC 1/4] net: allow large number of rx queues

2014-08-18 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

[RFC 1/4] net: allow large number of rx queues

2014-08-18 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 avoid

Re: [RFC 1/4] net: allow large number of rx queues

2014-08-18 Thread Sergei Shtylyov
Hello. On 08/18/2014 05:37 PM, 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 is done for tx

Re: [RFC 1/4] net: allow large number of rx queues

2014-08-18 Thread Pankaj Gupta
Hello. On 08/18/2014 05:37 PM, 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 is