Changeset 5dddac1 in mainline
- Timestamp:
- 2018-05-23T20:41:33Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e3887ce
- Parents:
- c1ba24a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/virtio-net/virtio-net.c
rc1ba24a r5dddac1 163 163 164 164 /* 165 * Give all RX buffers to the NIC 166 */ 167 for (unsigned i = 0; i < RX_BUFFERS; i++) { 168 /* 169 * Associtate the buffer with the descriptor, set length and 170 * flags. 171 */ 172 virtio_virtq_set_desc(vdev, RX_QUEUE_1, i, 173 virtio_net->rx_buf_p[i], RX_BUF_SIZE, VIRTQ_DESC_F_WRITE, 174 0); 175 /* 176 * Put the set descriptor into the available ring of the RX 177 * queue. 178 */ 179 virtio_virtq_produce_available(vdev, RX_QUEUE_1, i); 180 } 181 182 /* 165 183 * Read the MAC address 166 184 */
Note:
See TracChangeset
for help on using the changeset viewer.