Changeset 13365
- Timestamp:
- 12/04/09 02:18:24 (3 years ago)
- Location:
- src/linux/pb42/linux-2.6.23/drivers/net
- Files:
-
- 2 edited
-
ag7100/ag7100.c (modified) (3 diffs)
-
ag7240/ag7240.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/linux/pb42/linux-2.6.23/drivers/net/ag7100/ag7100.c
r13356 r13365 1226 1226 status = 0; 1227 1227 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24) 1228 netif_rx_complete(dev, napi); 1228 if (work_done < budget) 1229 netif_rx_complete(dev, napi); 1229 1230 #else 1230 1231 netif_rx_complete(dev); … … 1237 1238 { 1238 1239 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24) 1239 netif_rx_complete(dev, napi); 1240 spin_lock_irqsave(&mac->mac_lock, flags); 1241 if (work_done < budget) 1242 __netif_rx_complete(dev, napi); 1240 1243 #else 1241 1244 netif_rx_complete(dev); 1242 #endif1243 1245 spin_lock_irqsave(&mac->mac_lock, flags); 1246 #endif 1244 1247 ag7100_intr_enable_recv(mac); 1245 1248 spin_unlock_irqrestore(&mac->mac_lock, flags); … … 1260 1263 mod_timer(&mac->mac_oom_timer, jiffies+1); 1261 1264 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24) 1262 netif_rx_complete(dev, napi); 1265 if (work_done < budget) 1266 netif_rx_complete(dev, napi); 1263 1267 #else 1264 1268 netif_rx_complete(dev); -
src/linux/pb42/linux-2.6.23/drivers/net/ag7240/ag7240.c
r13356 r13365 1355 1355 { 1356 1356 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24) 1357 netif_rx_complete(dev, napi); 1357 spin_lock_irqsave(&mac->mac_lock, flags); 1358 if (work_done < budget) 1359 __netif_rx_complete(dev, napi); 1358 1360 #else 1359 1361 netif_rx_complete(dev); 1360 #endif1361 1362 spin_lock_irqsave(&mac->mac_lock, flags); 1363 #endif 1362 1364 ag7240_intr_enable_recv(mac); 1363 1365 spin_unlock_irqrestore(&mac->mac_lock, flags); … … 1378 1380 mod_timer(&mac->mac_oom_timer, jiffies+1); 1379 1381 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24) 1380 netif_rx_complete(dev, napi); 1382 if (work_done < budget) 1383 netif_rx_complete(dev, napi); 1381 1384 #else 1382 1385 netif_rx_complete(dev);
Note: See TracChangeset
for help on using the changeset viewer.
