Changeset 18927
- Timestamp:
- 04/05/12 15:30:33 (14 months ago)
- Location:
- src/linux/universal
- Files:
-
- 2 edited
-
linux-3.2/drivers/net/ppp/ppp_generic.c (modified) (4 diffs)
-
linux-3.3/drivers/net/ppp/ppp_generic.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/linux/universal/linux-3.2/drivers/net/ppp/ppp_generic.c
r18761 r18927 236 236 static int ppp_unattached_ioctl(struct net *net, struct ppp_file *pf, 237 237 struct file *file, unsigned int cmd, unsigned long arg); 238 static voidppp_xmit_process(struct ppp *ppp);238 static int ppp_xmit_process(struct ppp *ppp); 239 239 static void ppp_send_frame(struct ppp *ppp, struct sk_buff *skb); 240 240 static void ppp_push(struct ppp *ppp); … … 969 969 put_unaligned_be16(proto, pp); 970 970 971 netif_stop_queue(dev);972 971 skb_queue_tail(&ppp->file.xq, skb); 973 ppp_xmit_process(ppp); 972 if (!ppp_xmit_process(ppp)) 973 netif_stop_queue(dev); 974 974 return NETDEV_TX_OK; 975 975 … … 1049 1049 * that can now be done. 1050 1050 */ 1051 static void1051 static int 1052 1052 ppp_xmit_process(struct ppp *ppp) 1053 1053 { 1054 1054 struct sk_buff *skb; 1055 int ret = 0; 1055 1056 1056 1057 ppp_xmit_lock(ppp); … … 1062 1063 /* If there's no work left to do, tell the core net 1063 1064 code that we can accept some more. */ 1064 if (!ppp->xmit_pending && !skb_peek(&ppp->file.xq)) 1065 if (!ppp->xmit_pending && !skb_peek(&ppp->file.xq)) { 1065 1066 netif_wake_queue(ppp->dev); 1067 ret = 1; 1068 } 1066 1069 } 1067 1070 ppp_xmit_unlock(ppp); 1071 return ret; 1068 1072 } 1069 1073 -
src/linux/universal/linux-3.3/drivers/net/ppp/ppp_generic.c
r18778 r18927 236 236 static int ppp_unattached_ioctl(struct net *net, struct ppp_file *pf, 237 237 struct file *file, unsigned int cmd, unsigned long arg); 238 static voidppp_xmit_process(struct ppp *ppp);238 static int ppp_xmit_process(struct ppp *ppp); 239 239 static void ppp_send_frame(struct ppp *ppp, struct sk_buff *skb); 240 240 static void ppp_push(struct ppp *ppp); … … 969 969 put_unaligned_be16(proto, pp); 970 970 971 netif_stop_queue(dev);972 971 skb_queue_tail(&ppp->file.xq, skb); 973 ppp_xmit_process(ppp); 972 if (!ppp_xmit_process(ppp)) 973 netif_stop_queue(dev); 974 974 return NETDEV_TX_OK; 975 975 … … 1049 1049 * that can now be done. 1050 1050 */ 1051 static void1051 static int 1052 1052 ppp_xmit_process(struct ppp *ppp) 1053 1053 { 1054 1054 struct sk_buff *skb; 1055 int ret = 0; 1055 1056 1056 1057 ppp_xmit_lock(ppp); … … 1062 1063 /* If there's no work left to do, tell the core net 1063 1064 code that we can accept some more. */ 1064 if (!ppp->xmit_pending && !skb_peek(&ppp->file.xq)) 1065 if (!ppp->xmit_pending && !skb_peek(&ppp->file.xq)) { 1065 1066 netif_wake_queue(ppp->dev); 1067 ret = 1; 1068 } 1066 1069 } 1067 1070 ppp_xmit_unlock(ppp); 1071 return ret; 1068 1072 } 1069 1073
Note: See TracChangeset
for help on using the changeset viewer.
