xref: /openbmc/linux/include/net/gro_cells.h (revision b2441318)
1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
2c9e6bc64SEric Dumazet #ifndef _NET_GRO_CELLS_H
3c9e6bc64SEric Dumazet #define _NET_GRO_CELLS_H
4c9e6bc64SEric Dumazet 
5c9e6bc64SEric Dumazet #include <linux/skbuff.h>
6c9e6bc64SEric Dumazet #include <linux/slab.h>
7c9e6bc64SEric Dumazet #include <linux/netdevice.h>
8c9e6bc64SEric Dumazet 
997e219b7SEric Dumazet struct gro_cell;
10c9e6bc64SEric Dumazet 
11c9e6bc64SEric Dumazet struct gro_cells {
1288340160SMartin KaFai Lau 	struct gro_cell __percpu	*cells;
13c9e6bc64SEric Dumazet };
14c9e6bc64SEric Dumazet 
1597e219b7SEric Dumazet int gro_cells_receive(struct gro_cells *gcells, struct sk_buff *skb);
1697e219b7SEric Dumazet int gro_cells_init(struct gro_cells *gcells, struct net_device *dev);
1797e219b7SEric Dumazet void gro_cells_destroy(struct gro_cells *gcells);
18c9e6bc64SEric Dumazet 
19c9e6bc64SEric Dumazet #endif
20