1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 #ifndef _LINUX_NETDEVICE_XMIT_H 3 #define _LINUX_NETDEVICE_XMIT_H 4 5 #if IS_ENABLED(CONFIG_NET_ACT_MIRRED) 6 #define MIRRED_NEST_LIMIT 4 7 #endif 8 9 struct net_device; 10 11 struct netdev_xmit { 12 u16 recursion; 13 u8 more; 14 #ifdef CONFIG_NET_EGRESS 15 u8 skip_txqueue; 16 #endif 17 #if IS_ENABLED(CONFIG_NET_ACT_MIRRED) 18 u8 sched_mirred_nest; 19 struct net_device *sched_mirred_dev[MIRRED_NEST_LIMIT]; 20 #endif 21 #if IS_ENABLED(CONFIG_NF_DUP_NETDEV) 22 u8 nf_dup_skb_recursion; 23 #endif 24 }; 25 26 #endif 27