net: macb: use GRO
This patch updates the macb driver to use NAPI GRO helpers when receiving SKBs. This improves performances. Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
760a3c1aa1
commit
97236cda3a
@@ -1060,7 +1060,8 @@ struct macb_or_gem_ops {
|
||||
int (*mog_alloc_rx_buffers)(struct macb *bp);
|
||||
void (*mog_free_rx_buffers)(struct macb *bp);
|
||||
void (*mog_init_rings)(struct macb *bp);
|
||||
int (*mog_rx)(struct macb_queue *queue, int budget);
|
||||
int (*mog_rx)(struct macb_queue *queue, struct napi_struct *napi,
|
||||
int budget);
|
||||
};
|
||||
|
||||
/* MACB-PTP interface: adapt to platform needs. */
|
||||
|
Reference in New Issue
Block a user