[dpdk-dev] Access to the PCI config space

2013-08-21 Thread Stephen Hemminger
On Wed, 21 Aug 2013 18:13:21 -0700 Patrick Mahan wrote: > Has anyone contemplated providing access to the PCI config space > (pci_read_config_[byte|word|dword]) for DPDK? It seems simple to > perform, some preliminary testing by me seems to indicate opening > the /sys/bus/pci/devices//config fil

[dpdk-dev] Access to the PCI config space

2013-08-21 Thread Patrick Mahan
Has anyone contemplated providing access to the PCI config space (pci_read_config_[byte|word|dword]) for DPDK? It seems simple to perform, some preliminary testing by me seems to indicate opening the /sys/bus/pci/devices//config file, seeking to the correct offset and reading off the value. It se

[dpdk-dev] A question of DPDK ring buffer

2013-08-21 Thread Olivier MATZ
Hi Bob, > do { > prod_head = r->prod.head; > cons_tail = r->cons.tail; > prod_next = prod_head + n; > success = rte_atomic32_cmpset(&r->prod.head, prod_head, > prod_next); > > /* > * Why no