Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Eric Dumazet | c9e6bc6 | 2012-09-27 19:29:05 +0000 | [diff] [blame] | 2 | #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 Dumazet | 97e219b | 2017-02-07 15:37:15 -0800 | [diff] [blame] | 9 | struct gro_cell; |
Eric Dumazet | c9e6bc6 | 2012-09-27 19:29:05 +0000 | [diff] [blame] | 10 | |
| 11 | struct gro_cells { |
Martin KaFai Lau | 8834016 | 2015-01-16 10:11:00 -0800 | [diff] [blame] | 12 | struct gro_cell __percpu *cells; |
Eric Dumazet | c9e6bc6 | 2012-09-27 19:29:05 +0000 | [diff] [blame] | 13 | }; |
| 14 | |
Eric Dumazet | 97e219b | 2017-02-07 15:37:15 -0800 | [diff] [blame] | 15 | int gro_cells_receive(struct gro_cells *gcells, struct sk_buff *skb); |
| 16 | int gro_cells_init(struct gro_cells *gcells, struct net_device *dev); |
| 17 | void gro_cells_destroy(struct gro_cells *gcells); |
Eric Dumazet | c9e6bc6 | 2012-09-27 19:29:05 +0000 | [diff] [blame] | 18 | |
| 19 | #endif |