diff options
Diffstat (limited to 'include/linux/if_vlan.h')
-rw-r--r-- | include/linux/if_vlan.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/if_vlan.h b/include/linux/if_vlan.h index a5cb0c3f6dcf..f8ff918c208f 100644 --- a/include/linux/if_vlan.h +++ b/include/linux/if_vlan.h | |||
@@ -115,6 +115,11 @@ extern u16 vlan_dev_vlan_id(const struct net_device *dev); | |||
115 | extern int __vlan_hwaccel_rx(struct sk_buff *skb, struct vlan_group *grp, | 115 | extern int __vlan_hwaccel_rx(struct sk_buff *skb, struct vlan_group *grp, |
116 | u16 vlan_tci, int polling); | 116 | u16 vlan_tci, int polling); |
117 | extern int vlan_hwaccel_do_receive(struct sk_buff *skb); | 117 | extern int vlan_hwaccel_do_receive(struct sk_buff *skb); |
118 | extern int vlan_gro_receive(struct napi_struct *napi, struct vlan_group *grp, | ||
119 | unsigned int vlan_tci, struct sk_buff *skb); | ||
120 | extern int vlan_gro_frags(struct napi_struct *napi, struct vlan_group *grp, | ||
121 | unsigned int vlan_tci, | ||
122 | struct napi_gro_fraginfo *info); | ||
118 | 123 | ||
119 | #else | 124 | #else |
120 | static inline struct net_device *vlan_dev_real_dev(const struct net_device *dev) | 125 | static inline struct net_device *vlan_dev_real_dev(const struct net_device *dev) |
@@ -140,6 +145,20 @@ static inline int vlan_hwaccel_do_receive(struct sk_buff *skb) | |||
140 | { | 145 | { |
141 | return 0; | 146 | return 0; |
142 | } | 147 | } |
148 | |||
149 | static inline int vlan_gro_receive(struct napi_struct *napi, | ||
150 | struct vlan_group *grp, | ||
151 | unsigned int vlan_tci, struct sk_buff *skb) | ||
152 | { | ||
153 | return NET_RX_DROP; | ||
154 | } | ||
155 | |||
156 | static inline int vlan_gro_frags(struct napi_struct *napi, | ||
157 | struct vlan_group *grp, unsigned int vlan_tci, | ||
158 | struct napi_gro_fraginfo *info) | ||
159 | { | ||
160 | return NET_RX_DROP; | ||
161 | } | ||
143 | #endif | 162 | #endif |
144 | 163 | ||
145 | /** | 164 | /** |