Changes between Version 22 and Version 23 of Component/Vci Master Nic
- Timestamp:
- Jul 30, 2020, 3:26:56 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Component/Vci Master Nic
v22 v23 30 30 === 1.1 Software queues === 31 31 32 The received packets (RX) and the sent packets (TX) are stored in two memory mapped software FIFO queues, called ''chained buffer'', and defined by the '''nic_chbuf_s''' C structure. Each slot in the queue is a ''container''. The number of containers, defining the FIFO depth, is a software defined parameter.32 The received packets (RX) and the sent packets (TX) are stored in two memory mapped queues, handled as software FIFOs. They are and called ''chained buffer'', and defined by the '''nic_chbuf_s''' C structure. Each slot in the queue is a ''container''. Each container can contain one single UDP packet or TCP segment. The number of containers, defining the FIFO depth, is a software defined parameter. 33 33 34 34 {{{ … … 48 48 49 49 The '''nic_cont_s''' C structure contains a 2040 bytes data buffer, the actual ethernet packet length (in bytes), and the container state : full (owned by the reader) / empty (owned by the writer). 50 Thist state variable is used as a SET/RESET flip-flop to synchronizethe software server thread, and the hardware NIC DMA engine.50 Thist state variable is used as a SET/RESET flip-flop, by the software server thread, and the hardware NIC DMA engine. 51 51 {{{ 52 52 struct nic_cont_s