Changeset a5c82bb9 in mainline
- Timestamp:
- 2012-04-22T21:50:29Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f7cbc6f
- Parents:
- d3a8e47
- Location:
- uspace/lib/nic
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/nic/include/nic.h
rd3a8e47 ra5c82bb9 232 232 extern int nic_report_poll_mode(nic_t *, nic_poll_mode_t, struct timeval *); 233 233 extern void nic_query_address(nic_t *, nic_address_t *); 234 extern void nic_received_noneth_frame(nic_t *, void *, size_t);235 234 extern void nic_received_frame(nic_t *, nic_frame_t *); 236 235 extern void nic_received_frame_list(nic_t *, nic_frame_list_t *); -
uspace/lib/nic/src/nic_driver.c
rd3a8e47 ra5c82bb9 624 624 625 625 /** 626 * This function is to be used only in the loopback driver. It's workaround627 * for the situation when the frame does not contain ethernet address.628 * The filtering is therefore not applied here.629 *630 * @param nic_data631 * @param data Frame data632 * @param size Frame size in bytes633 */634 void nic_received_noneth_frame(nic_t *nic_data, void *data, size_t size)635 {636 fibril_rwlock_write_lock(&nic_data->stats_lock);637 nic_data->stats.receive_packets++;638 nic_data->stats.receive_bytes += size;639 fibril_rwlock_write_unlock(&nic_data->stats_lock);640 641 nic_ev_received(nic_data->client_session, data, size);642 }643 644 /**645 626 * Some NICs can receive multiple frames during single interrupt. These can 646 627 * send them in whole list of frames (actually nic_frame_t structures), then
Note:
See TracChangeset
for help on using the changeset viewer.