blob: 596688b67a2a898a513e0e6e85bf349ad2a1ba2c [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Eric Dumazetc9e6bc62012-09-27 19:29:05 +00002#ifndef _NET_GRO_CELLS_H
3#define _NET_GRO_CELLS_H
4
5#include <linux/skbuff.h>
6#include <linux/slab.h>
7#include <linux/netdevice.h>
8
Eric Dumazet97e219b2017-02-07 15:37:15 -08009struct gro_cell;
Eric Dumazetc9e6bc62012-09-27 19:29:05 +000010
11struct gro_cells {
Martin KaFai Lau88340162015-01-16 10:11:00 -080012 struct gro_cell __percpu *cells;
Eric Dumazetc9e6bc62012-09-27 19:29:05 +000013};
14
Eric Dumazet97e219b2017-02-07 15:37:15 -080015int gro_cells_receive(struct gro_cells *gcells, struct sk_buff *skb);
16int gro_cells_init(struct gro_cells *gcells, struct net_device *dev);
17void gro_cells_destroy(struct gro_cells *gcells);
Eric Dumazetc9e6bc62012-09-27 19:29:05 +000018
19#endif