aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2021-12-14 07:09:33 -0800
committerDavid S. Miller <davem@davemloft.net>2021-12-15 15:07:04 +0000
commitf1d9268e061863ead77b07f5a6807d063e28a1c2 (patch)
treeccbfc01d0e6644eded73757c9884eee9a6dd7326 /include/linux/netdevice.h
parentMerge branch 'mlxsw-ipv6-underlay' (diff)
downloadlinux-dev-f1d9268e061863ead77b07f5a6807d063e28a1c2.tar.xz
linux-dev-f1d9268e061863ead77b07f5a6807d063e28a1c2.zip
net: add net device refcount tracker to struct packet_type
Most notable changes are in af_packet, tipc ones are trivial. Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Jon Maloy <jmaloy@redhat.com> Cc: Ying Xue <ying.xue@windriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index c06e9dc1a317..a419718612c6 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -2533,6 +2533,7 @@ struct packet_type {
__be16 type; /* This is really htons(ether_type). */
bool ignore_outgoing;
struct net_device *dev; /* NULL is wildcarded here */
+ netdevice_tracker dev_tracker;
int (*func) (struct sk_buff *,
struct net_device *,
struct packet_type *,