numam-dpdk/drivers/net
Bruce Richardson 9c6dfcb720 ring: fix return of new port id on creation
The rte_eth_from_rings API allowed the creation of an ethdev port at
runtime using rte_rings as the underlying storage. However, the return
value from this function was either 0 or -1, and these values were never
actually documented in the API documentation. Unfortunately, the programmers
guide doc examples for this API implied that the return value from this
function was the port id of the newly created ethdev.

Since this latter behaviour is more useful - and already implied by the
documentation, this patch changes the return 0 to "return
data->port_id". It also adds in doxygen comments for the function so it
can be correctly documented in the API reference.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
2015-06-22 17:33:23 +02:00
..
af_packet af_packet: move to drivers/net/ 2015-05-22 15:51:38 +02:00
bonding bonding: remove useless memset 2015-06-04 10:46:45 +02:00
e1000 e1000: add multicast MAC address filtering 2015-06-12 15:55:38 +02:00
enic drivers: explicit initialization of pci drivers 2015-06-12 11:10:10 +02:00
fm10k fm10k: fix mac/vlan filtering 2015-06-22 17:27:59 +02:00
i40e drivers: explicit initialization of pci drivers 2015-06-12 11:10:10 +02:00
ixgbe ixgbe: fix X550 copper link 2015-06-22 17:27:58 +02:00
mlx4 mlx4: fix 32-bit build 2015-06-12 17:38:14 +02:00
null null: remove useless memset 2015-06-04 10:46:45 +02:00
pcap drivers: fix whitespace 2015-06-12 11:10:10 +02:00
ring ring: fix return of new port id on creation 2015-06-22 17:33:23 +02:00
virtio virtio: fix crash if CQ is not negotiated 2015-06-12 14:50:06 +02:00
vmxnet3 drivers: explicit initialization of pci drivers 2015-06-12 11:10:10 +02:00
xenvirt xenvirt: move drivers/net/ 2015-05-22 16:06:23 +02:00
Makefile xenvirt: move drivers/net/ 2015-05-22 16:06:23 +02:00