/* Copyright (C) 2007-2017 B.A.T.M.A.N. contributors: * * Marek Lindner * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, see . */ #ifndef _NET_BATMAN_ADV_ICMP_SOCKET_H_ #define _NET_BATMAN_ADV_ICMP_SOCKET_H_ #include "main.h" #include struct batadv_icmp_header; #define BATADV_ICMP_SOCKET "socket" int batadv_socket_setup(struct batadv_priv *bat_priv); #ifdef CONFIG_BATMAN_ADV_DEBUGFS void batadv_socket_init(void); void batadv_socket_receive_packet(struct batadv_icmp_header *icmph, size_t icmp_len); #else static inline void batadv_socket_init(void) { } static inline void batadv_socket_receive_packet(struct batadv_icmp_header *icmph, size_t icmp_len) { } #endif #endif /* _NET_BATMAN_ADV_ICMP_SOCKET_H_ */ et-rx-pump-back net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/net/core
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2017-02-07 15:37:15 -0800
committerDavid S. Miller <davem@davemloft.net>2017-02-08 14:38:18 -0500
commit97e219b7c1f75b14b29abe28ad53e8709e8d15e5 (patch)
treeffce868c8d15defa68ee441282782f2bacabf80a /net/core
parent40710cf9ad234778eb8b10ef07d922f435005cf7 (diff)
gro_cells: move to net/core/gro_cells.c
We have many gro cells users, so lets move the code to avoid duplication. This creates a CONFIG_GRO_CELLS option. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/Makefile1
-rw-r--r--net/core/gro_cells.c92
2 files changed, 93 insertions, 0 deletions
diff --git a/net/core/Makefile b/net/core/Makefile