aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiri Pirko <jpirko@redhat.com>2011-07-20 00:54:36 -0400
committerDavid S. Miller <davem@davemloft.net>2011-07-21 16:47:56 -0400
commita4aeb26628b5184386f99cf202ac837b0e56c975 (patch)
tree45c99ff239308f6860ae85c9ad6a88525df3fbdf
parent892ef5d85259e193505d553c10237fd5dc9a3d0d (diff)
vlan: kill __vlan_hwaccel_rx and vlan_hwaccel_rx
Signed-off-by: Jiri Pirko <jpirko@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--include/linux/if_vlan.h22
-rw-r--r--net/8021q/vlan_core.c9
2 files changed, 0 insertions, 31 deletions
diff --git a/include/linux/if_vlan.h b/include/linux/if_vlan.h
index 3996713caaec..d81beced0dae 100644
--- a/include/linux/if_vlan.h
+++ b/include/linux/if_vlan.h
@@ -125,8 +125,6 @@ extern struct net_device *__vlan_find_dev_deep(struct net_device *real_dev,
125extern struct net_device *vlan_dev_real_dev(const struct net_device *dev); 125extern struct net_device *vlan_dev_real_dev(const struct net_device *dev);
126extern u16 vlan_dev_vlan_id(const struct net_device *dev); 126extern u16 vlan_dev_vlan_id(const struct net_device *dev);
127 127
128extern int __vlan_hwaccel_rx(struct sk_buff *skb, struct vlan_group *grp,
129 u16 vlan_tci, int polling);
130extern bool vlan_do_receive(struct sk_buff **skb); 128extern bool vlan_do_receive(struct sk_buff **skb);
131extern struct sk_buff *vlan_untag(struct sk_buff *skb); 129extern struct sk_buff *vlan_untag(struct sk_buff *skb);
132extern gro_result_t 130extern gro_result_t
@@ -155,13 +153,6 @@ static inline u16 vlan_dev_vlan_id(const struct net_device *dev)
155 return 0; 153 return 0;
156} 154}
157 155
158static inline int __vlan_hwaccel_rx(struct sk_buff *skb, struct vlan_group *grp,
159 u16 vlan_tci, int polling)
160{
161 BUG();
162 return NET_XMIT_SUCCESS;
163}
164
165static inline bool vlan_do_receive(struct sk_buff **skb) 156static inline bool vlan_do_receive(struct sk_buff **skb)
166{ 157{
167 if ((*skb)->vlan_tci & VLAN_VID_MASK) 158 if ((*skb)->vlan_tci & VLAN_VID_MASK)
@@ -190,19 +181,6 @@ vlan_gro_frags(struct napi_struct *napi, struct vlan_group *grp,
190#endif 181#endif
191 182
192/** 183/**
193 * vlan_hwaccel_rx - netif_rx wrapper for VLAN RX acceleration
194 * @skb: buffer
195 * @grp: vlan group
196 * @vlan_tci: VLAN TCI as received from the card
197 */
198static inline int vlan_hwaccel_rx(struct sk_buff *skb,
199 struct vlan_group *grp,
200 u16 vlan_tci)
201{
202 return __vlan_hwaccel_rx(skb, grp, vlan_tci, 0);
203}
204
205/**
206 * vlan_insert_tag - regular VLAN tag inserting 184 * vlan_insert_tag - regular VLAN tag inserting
207 * @skb: skbuff to tag 185 * @skb: skbuff to tag
208 * @vlan_tci: VLAN TCI to insert 186 * @vlan_tci: VLAN TCI to insert
diff --git a/net/8021q/vlan_core.c b/net/8021q/vlan_core.c
index 5940366fac48..68b04ea5fa48 100644
--- a/net/8021q/vlan_core.c
+++ b/net/8021q/vlan_core.c
@@ -96,15 +96,6 @@ u16 vlan_dev_vlan_id(const struct net_device *dev)
96} 96}
97EXPORT_SYMBOL(vlan_dev_vlan_id); 97EXPORT_SYMBOL(vlan_dev_vlan_id);
98 98
99/* VLAN rx hw acceleration helper. This acts like netif_{rx,receive_skb}(). */
100int __vlan_hwaccel_rx(struct sk_buff *skb, struct vlan_group *grp,
101 u16 vlan_tci, int polling)
102{
103 __vlan_hwaccel_put_tag(skb, vlan_tci);
104 return polling ? netif_receive_skb(skb) : netif_rx(skb);
105}
106EXPORT_SYMBOL(__vlan_hwaccel_rx);
107
108gro_result_t vlan_gro_receive(struct napi_struct *napi, struct vlan_group *grp, 99gro_result_t vlan_gro_receive(struct napi_struct *napi, struct vlan_group *grp,
109 unsigned int vlan_tci, struct sk_buff *skb) 100 unsigned int vlan_tci, struct sk_buff *skb)
110{ 101{