aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/bnep/netdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/bluetooth/bnep/netdev.c')
-rw-r--r--net/bluetooth/bnep/netdev.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/net/bluetooth/bnep/netdev.c b/net/bluetooth/bnep/netdev.c
index d7a0e9722def..26fb831ef7e0 100644
--- a/net/bluetooth/bnep/netdev.c
+++ b/net/bluetooth/bnep/netdev.c
@@ -165,7 +165,8 @@ static inline int bnep_net_proto_filter(struct sk_buff *skb, struct bnep_session
165} 165}
166#endif 166#endif
167 167
168static int bnep_net_xmit(struct sk_buff *skb, struct net_device *dev) 168static netdev_tx_t bnep_net_xmit(struct sk_buff *skb,
169 struct net_device *dev)
169{ 170{
170 struct bnep_session *s = netdev_priv(dev); 171 struct bnep_session *s = netdev_priv(dev);
171 struct sock *sk = s->sock->sk; 172 struct sock *sk = s->sock->sk;
@@ -175,14 +176,14 @@ static int bnep_net_xmit(struct sk_buff *skb, struct net_device *dev)
175#ifdef CONFIG_BT_BNEP_MC_FILTER 176#ifdef CONFIG_BT_BNEP_MC_FILTER
176 if (bnep_net_mc_filter(skb, s)) { 177 if (bnep_net_mc_filter(skb, s)) {
177 kfree_skb(skb); 178 kfree_skb(skb);
178 return 0; 179 return NETDEV_TX_OK;
179 } 180 }
180#endif 181#endif
181 182
182#ifdef CONFIG_BT_BNEP_PROTO_FILTER 183#ifdef CONFIG_BT_BNEP_PROTO_FILTER
183 if (bnep_net_proto_filter(skb, s)) { 184 if (bnep_net_proto_filter(skb, s)) {
184 kfree_skb(skb); 185 kfree_skb(skb);
185 return 0; 186 return NETDEV_TX_OK;
186 } 187 }
187#endif 188#endif
188 189
@@ -203,7 +204,7 @@ static int bnep_net_xmit(struct sk_buff *skb, struct net_device *dev)
203 netif_stop_queue(dev); 204 netif_stop_queue(dev);
204 } 205 }
205 206
206 return 0; 207 return NETDEV_TX_OK;
207} 208}
208 209
209static const struct net_device_ops bnep_netdev_ops = { 210static const struct net_device_ops bnep_netdev_ops = {