描述:
本帖最后由 jackydi 于 2014-06-24 19:58:48 编辑
vxworks;网卡内核宏
我想使用netStackSysPoolShow命令查看网卡驱动使用的缓冲区情况,但是却没有任何输出,直接返回0,这是怎么回事呢?内核中已经根据说明包含INCLUDE_NETPOOLSHOW宏了。同样使用netStackDataPoolShow命令也没有任何输出。
VxWorks系统为6.9
解决方案1:
ls说得挺清楚
解决方案2: Previous versions of the Wind River Network Stack made use of two special netBufLib pools: the network stack data pool and the network stack system pool. The stack used the data pool for packets sent to the network and for data in socket send buffers; it used the system pool for control structures such as sockets, route entries, protocol control blocks, socket addresses, and the like.
The network stack no longer uses netBufLib pools internally, except when it communicates with network device drivers. It does not require the legacy network stack data and system pools, and so the component INCLUDE_NET_POOL that includes and configures these pools is not present in the default VxWorks build.
默认不用这两个POOL,所以直接返回0
加上INCLUDE_NET_POOL可以看到输出结果
-> netStackDataPoolShow
type number
--------- ------
FREE : 144
TOTAL : 144
number of mbufs: 144
number of times failed to find space: 0
number of times waited for space: 0
number of times drained protocols for space: 0
__________________
CLUSTER POOL TABLE
_______________________________________________________________________________
size clusters free usage minsize maxsize empty
-------------------------------------------------------------------------------
128 128 128 0 0 0 0
256 4 4 0 0 0 0
512 4 4 0 0 0 0
1024 4 4 0 0 0 0
2048 4 4 0 0 0 0
-------------------------------------------------------------------------------
value = 80 = 0x50 = 'P'
->