diff options
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 88a00694eda5..210d11a75e4f 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -507,6 +507,7 @@ static inline void napi_enable(struct napi_struct *n) | |||
507 | BUG_ON(!test_bit(NAPI_STATE_SCHED, &n->state)); | 507 | BUG_ON(!test_bit(NAPI_STATE_SCHED, &n->state)); |
508 | smp_mb__before_atomic(); | 508 | smp_mb__before_atomic(); |
509 | clear_bit(NAPI_STATE_SCHED, &n->state); | 509 | clear_bit(NAPI_STATE_SCHED, &n->state); |
510 | clear_bit(NAPI_STATE_NPSVC, &n->state); | ||
510 | } | 511 | } |
511 | 512 | ||
512 | #ifdef CONFIG_SMP | 513 | #ifdef CONFIG_SMP |
@@ -1053,6 +1054,10 @@ typedef u16 (*select_queue_fallback_t)(struct net_device *dev, | |||
1053 | * This function is used to pass protocol port error state information | 1054 | * This function is used to pass protocol port error state information |
1054 | * to the switch driver. The switch driver can react to the proto_down | 1055 | * to the switch driver. The switch driver can react to the proto_down |
1055 | * by doing a phys down on the associated switch port. | 1056 | * by doing a phys down on the associated switch port. |
1057 | * int (*ndo_fill_metadata_dst)(struct net_device *dev, struct sk_buff *skb); | ||
1058 | * This function is used to get egress tunnel information for given skb. | ||
1059 | * This is useful for retrieving outer tunnel header parameters while | ||
1060 | * sampling packet. | ||
1056 | * | 1061 | * |
1057 | */ | 1062 | */ |
1058 | struct net_device_ops { | 1063 | struct net_device_ops { |
@@ -1226,6 +1231,8 @@ struct net_device_ops { | |||
1226 | int (*ndo_get_iflink)(const struct net_device *dev); | 1231 | int (*ndo_get_iflink)(const struct net_device *dev); |
1227 | int (*ndo_change_proto_down)(struct net_device *dev, | 1232 | int (*ndo_change_proto_down)(struct net_device *dev, |
1228 | bool proto_down); | 1233 | bool proto_down); |
1234 | int (*ndo_fill_metadata_dst)(struct net_device *dev, | ||
1235 | struct sk_buff *skb); | ||
1229 | }; | 1236 | }; |
1230 | 1237 | ||
1231 | /** | 1238 | /** |
@@ -2202,6 +2209,7 @@ void dev_add_offload(struct packet_offload *po); | |||
2202 | void dev_remove_offload(struct packet_offload *po); | 2209 | void dev_remove_offload(struct packet_offload *po); |
2203 | 2210 | ||
2204 | int dev_get_iflink(const struct net_device *dev); | 2211 | int dev_get_iflink(const struct net_device *dev); |
2212 | int dev_fill_metadata_dst(struct net_device *dev, struct sk_buff *skb); | ||
2205 | struct net_device *__dev_get_by_flags(struct net *net, unsigned short flags, | 2213 | struct net_device *__dev_get_by_flags(struct net *net, unsigned short flags, |
2206 | unsigned short mask); | 2214 | unsigned short mask); |
2207 | struct net_device *dev_get_by_name(struct net *net, const char *name); | 2215 | struct net_device *dev_get_by_name(struct net *net, const char *name); |