aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/if_vlan.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/if_vlan.h')
-rw-r--r--include/linux/if_vlan.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/linux/if_vlan.h b/include/linux/if_vlan.h
index 635e1faec412..998b29930b80 100644
--- a/include/linux/if_vlan.h
+++ b/include/linux/if_vlan.h
@@ -132,7 +132,8 @@ extern u16 vlan_dev_vlan_id(const struct net_device *dev);
132 132
133extern int __vlan_hwaccel_rx(struct sk_buff *skb, struct vlan_group *grp, 133extern int __vlan_hwaccel_rx(struct sk_buff *skb, struct vlan_group *grp,
134 u16 vlan_tci, int polling); 134 u16 vlan_tci, int polling);
135extern bool vlan_hwaccel_do_receive(struct sk_buff **skb); 135extern bool vlan_do_receive(struct sk_buff **skb);
136extern struct sk_buff *vlan_untag(struct sk_buff *skb);
136extern gro_result_t 137extern gro_result_t
137vlan_gro_receive(struct napi_struct *napi, struct vlan_group *grp, 138vlan_gro_receive(struct napi_struct *napi, struct vlan_group *grp,
138 unsigned int vlan_tci, struct sk_buff *skb); 139 unsigned int vlan_tci, struct sk_buff *skb);
@@ -166,13 +167,18 @@ static inline int __vlan_hwaccel_rx(struct sk_buff *skb, struct vlan_group *grp,
166 return NET_XMIT_SUCCESS; 167 return NET_XMIT_SUCCESS;
167} 168}
168 169
169static inline bool vlan_hwaccel_do_receive(struct sk_buff **skb) 170static inline bool vlan_do_receive(struct sk_buff **skb)
170{ 171{
171 if ((*skb)->vlan_tci & VLAN_VID_MASK) 172 if ((*skb)->vlan_tci & VLAN_VID_MASK)
172 (*skb)->pkt_type = PACKET_OTHERHOST; 173 (*skb)->pkt_type = PACKET_OTHERHOST;
173 return false; 174 return false;
174} 175}
175 176
177inline struct sk_buff *vlan_untag(struct sk_buff *skb)
178{
179 return skb;
180}
181
176static inline gro_result_t 182static inline gro_result_t
177vlan_gro_receive(struct napi_struct *napi, struct vlan_group *grp, 183vlan_gro_receive(struct napi_struct *napi, struct vlan_group *grp,
178 unsigned int vlan_tci, struct sk_buff *skb) 184 unsigned int vlan_tci, struct sk_buff *skb)