> > Other drivers do similar allocations. For example, e1000 when working > with jumbo frames does such large allocations. Also I did not notice > allocation failures though my system was pretty much active but I can > monitor for such possible failures. > > e1000_main.c line 3549: > > else if (max_frame <= E1000_RXBUFFER_16384) > adapter->rx_buffer_len = E1000_RXBUFFER_16384; >
It looks like E1000_RXBUFFER_16384 is used by e1000_setup_rctl() to configure the receive control registers. The actual allocation of buffers happens in e1000_alloc_rx_buffers_ps() wherein 3 pages are allocated through alloc_page(GFP_ATOMIC) for the case of jumbo frames. Pradeep _______________________________________________ general mailing list [email protected] http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
