/* Get queue manager and queue number from handle */
queInfo = Qmss_getQueueNumber (rxQueHnd); 704
rxFlowCfg.rx_dest_qnum = queInfo.qNum;
rxFlowCfg.rx_dest_qmgr = queInfo.qMgr;
rxFlowCfg.rx_sop_offset = 0;
rxFlowCfg.rx_desc_type = Cppi_DescType_HOST; /* Get queue manager and queue number from handle */
queInfo = Qmss_getQueueNumber (freeQueHnd);
rxFlowCfg.rx_fdq0_sz0_qnum = queInfo.qNum;
rxFlowCfg.rx_fdq0_sz0_qmgr = queInfo.qMgr;
rxFlowCfg.rx_psinfo_present = 1;
rxFlowCfg.rx_ps_location = 0;
运行结果:
[C66xx_0] ————————-Queue status————————-
[C66xx_0] Transmit Queue 800 Entry Count : 0[C66xx_0] Tx Free Queue 737 Entry Count : 0[C66xx_0] Rx Free Queue 738 Entry Count : 0[C66xx_0] Receive Queue 704 Entry Count : 0[C66xx_0] Tx completion Queue 1000 Entry Count : 8
疑问:为什么Receive Queue 704里面没有描述符,接收的描述符去哪里了,官方例程cppiTestProject???
xt guo:
我把accumulator配置关了,704里就有接收到描述符了。
运行结果如下:
[C66xx_0] ————————-Queue status————————-[C66xx_0] Transmit Queue 800 Entry Count : 0 [C66xx_0] Tx Free Queue 737 Entry Count : 0 [C66xx_0] Rx Free Queue 738 Entry Count : 0 [C66xx_0] Receive Queue 704 Entry Count : 8 [C66xx_0] Tx completion Queue 1000 Entry Count : 8
疑问:为什么加上acc后704就没描述符了,那接收FDQ中的desc最终去哪了???
Thomas Yang1:
回复 xt guo:
desc memory是物理存在的,不存在最终去哪了 这种概念。这种情况一般是接收侧和发送侧配置不匹配导致的。