124 | | The packets are transfered by the hardware to the NIC from a distributed kernel chbuf (one 4 Kbytes container per cluster), where the involved clusters are defined by the (x_size / y_size) parameters. The (x_size / y_size) cannot be larger than the (X_SIZE / Y_SIZE) defining the max number of clusters in the hardware, |
125 | | but they can be smaller. |
126 | | The calling task exit if no available NIC_TX channel, if no available CMA channel, if (x_size / y_size) are too large, or if there is not enough memory for the distributed kernel containers in one selected cluster. |
127 | | |
128 | | === 2) unsigned int '''giet_nic_rx_alloc'''( ) === |
| 124 | The packets are transfered by the hardware to the NIC from a distributed kernel chbuf (one 4 Kbytes container per cluster), where the number of involved clusters is defined by the (xmax / ymax) parameters. The (xmax / ymax) arguments cannot be larger than (X_SIZE / Y_SIZE) defining the max number of clusters in the platform, but they can be smaller. |
| 125 | The calling task exit if no available NIC_TX channel, if no available CMA channel, if (xmax / ymax) are too large, or if there is not enough memory for the distributed kernel containers in one selected cluster. |
| 126 | |
| 127 | === 2) unsigned int '''giet_nic_rx_alloc'''( unsigned int xmax, unsigned int ymax ) === |
130 | | The packets are transfered by the hardware from the NIC to a distributed kernel chbuf (one 4 Kbytes container per cluster), where the involved clusters are defined by the (x_size / y_size) parameters. The (x_size / y_size) cannot be larger than the (X_SIZE / Y_SIZE) defining the max number of clusters in the hardware, |
131 | | but they can be smaller. |
132 | | The calling task exit if no available NIC_TX channel, if no available CMA channel, if (x_size / y_size) are too large, or if there is not enough memory for the distributed kernel containers in one selected cluster. |
| 129 | The packets are transfered by the hardware from the NIC to a distributed kernel chbuf (one 4 Kbytes container per cluster), where the number of involved clusters is defined by the (xmax / ymax) parameters. The (xmax / ymax) arguments cannot be larger than (X_SIZE / Y_SIZE) defining the max number of clusters in the platform, but they can be smaller. |
| 130 | The calling task exit if no available NIC_TX channel, if no available CMA channel, if (xmax / ymax) are too large, or if there is not enough memory for the distributed kernel containers in one selected cluster. |