aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2021-12-14 07:09:33 -0800
committerDavid S. Miller <[email protected]>2021-12-15 15:07:04 +0000
commitf1d9268e061863ead77b07f5a6807d063e28a1c2 (patch)
treeccbfc01d0e6644eded73757c9884eee9a6dd7326 /include
parentab8c83cf8734a4fcff3b359b23afd174cd43ec03 (diff)
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 <[email protected]> Cc: Jon Maloy <[email protected]> Cc: Ying Xue <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'include')
-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 *,