Changeset 6d8455d in mainline for uspace/srv
- Timestamp:
- 2012-01-14T11:07:34Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f302586
- Parents:
- f991b6b
- Location:
- uspace/srv/net/nil
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/nil/eth/eth.c
rf991b6b r6d8455d 802 802 next = tmp; 803 803 } else { 804 nic_send_frame(device->sess, packet_get_data(next), 805 packet_get_data_length(next)); 804 806 next = pq_next(next); 805 807 } 806 808 } while (next); 807 809 808 /* Send packet queue */ 809 if (packet) 810 nic_send_message(device->sess, packet_get_id(packet)); 810 pq_release_remote(eth_globals.net_sess, packet_get_id(packet)); 811 811 812 812 fibril_rwlock_read_unlock(ð_globals.devices_lock); -
uspace/srv/net/nil/nildummy/nildummy.c
rf991b6b r6d8455d 345 345 services_t sender) 346 346 { 347 packet_t *p; 348 347 349 fibril_rwlock_read_lock(&nildummy_globals.devices_lock); 348 350 … … 354 356 } 355 357 356 /* Send packet queue */ 357 if (packet) 358 nic_send_message(device->sess, packet_get_id(packet)); 358 p = packet; 359 do { 360 nic_send_frame(device->sess, packet_get_data(p), 361 packet_get_data_length(p)); 362 p = pq_next(p); 363 } while (p != NULL); 364 365 pq_release_remote(nildummy_globals.net_sess, packet_get_id(packet)); 359 366 360 367 fibril_rwlock_read_unlock(&nildummy_globals.devices_lock);
Note:
See TracChangeset
for help on using the changeset viewer.