[RFC PATCH v8 15/16] An example how to modifiy NIC driver to use napi_gro_frags() interface

Date

Thu, 29 Jul 2010 19:14:47 +0800

From: Xin Xiaohui <xiaohui.xin@intel.com>

This example is made on ixgbe driver.It provides API is_rx_buffer_mapped_as_page() to indicateif the driver use napi_gro_frags() interface or not.The example allocates 2 pages for DMA for one ring descriptorusing netdev_alloc_page(). When packets is coming, usingnapi_gro_frags() to allocate skb and to receive the packets.