xref: /OK3568_Linux_fs/kernel/include/net/gro_cells.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun #ifndef _NET_GRO_CELLS_H
3*4882a593Smuzhiyun #define _NET_GRO_CELLS_H
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun #include <linux/skbuff.h>
6*4882a593Smuzhiyun #include <linux/slab.h>
7*4882a593Smuzhiyun #include <linux/netdevice.h>
8*4882a593Smuzhiyun 
9*4882a593Smuzhiyun struct gro_cell;
10*4882a593Smuzhiyun 
11*4882a593Smuzhiyun struct gro_cells {
12*4882a593Smuzhiyun 	struct gro_cell __percpu	*cells;
13*4882a593Smuzhiyun };
14*4882a593Smuzhiyun 
15*4882a593Smuzhiyun int gro_cells_receive(struct gro_cells *gcells, struct sk_buff *skb);
16*4882a593Smuzhiyun int gro_cells_init(struct gro_cells *gcells, struct net_device *dev);
17*4882a593Smuzhiyun void gro_cells_destroy(struct gro_cells *gcells);
18*4882a593Smuzhiyun 
19*4882a593Smuzhiyun #endif
20