Changeset 97c7682 in mainline for uspace/lib/nic/src/nic_driver.c
- Timestamp:
- 2012-07-14T11:18:40Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 804d9b6
- Parents:
- 0747468 (diff), f0348c8 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/nic/src/nic_driver.c
r0747468 r97c7682 79 79 } 80 80 81 /** 82 * Fill in the default implementations for device options and NIC interface. 81 /** Fill in the default implementations for device options and NIC interface. 83 82 * 84 83 * @param driver_ops … … 624 623 625 624 /** 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 625 * Some NICs can receive multiple frames during single interrupt. These can 646 626 * send them in whole list of frames (actually nic_frame_t structures), then
Note:
See TracChangeset
for help on using the changeset viewer.