DPDK patches and discussions
 help / color / mirror / Atom feed
From: Bruce Richardson <bruce.richardson@intel.com>
To: Bernard Iremonger <bernard.iremonger@intel.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH 1/1] app/test: create ring and ethdevs in pmd_ring_autotest
Date: Tue, 24 Nov 2015 16:14:18 +0000	[thread overview]
Message-ID: <20151124161417.GA21112@bricha3-MOBL3> (raw)
In-Reply-To: <1448292046-22682-1-git-send-email-bernard.iremonger@intel.com>

On Mon, Nov 23, 2015 at 03:20:46PM +0000, Bernard Iremonger wrote:
> Use command line option --vdev=eth_ring0 to create port 0.
> Create two rings and five ethdevs in test_pmd_ring for ports 1 to 5.
> Improve test output by adding the port number to printf statements,
> and adding a printf describing each test.
> 
> revise ring-based PMD doc to match latest ring PMD code.
> 
> Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>

The doc changes are not relevant to the unit test fixes, so should be in a 
separate patch. The test changes themselves are good though, and actually makes
the test runable without having to find a very specific command-line incantation
to make things work right.

Subject to this being split into two:
Acked-by: Bruce Richardson <bruce.richardson@intel.com>


> ---
>  app/test/test_pmd_ring.c      | 360 +++++++++++++++++++++++++-----------------
>  doc/guides/nics/pcap_ring.rst |  28 ++--
>  2 files changed, 235 insertions(+), 153 deletions(-)
> 
> diff --git a/app/test/test_pmd_ring.c b/app/test/test_pmd_ring.c
> index a555db8..5568759 100644
> --- a/app/test/test_pmd_ring.c
> +++ b/app/test/test_pmd_ring.c
> @@ -1,7 +1,7 @@
>  /*-
>   *   BSD LICENSE
>   *
> - *   Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
> + *   Copyright(c) 2010-2015 Intel Corporation. All rights reserved.
>   *   All rights reserved.
>   *
>   *   Redistribution and use in source and binary forms, with or without
> @@ -38,108 +38,104 @@
>  #include <rte_ethdev.h>
>  
>  static struct rte_mempool *mp;
> +static int tx_porta, rx_portb, rxtx_portc, rxtx_portd, rxtx_porte;
>  
> -#define TX_PORT 0
> -#define RX_PORT 1
> -#define RXTX_PORT 2
> -#define RXTX_PORT2 3
> -#define RXTX_PORT3 4
>  #define SOCKET0 0
> -
>  #define RING_SIZE 256
> +#define NUM_RINGS 2
> +#define NB_MBUF 512
>  
> -#define NB_MBUF   512
>  
>  static int
> -test_ethdev_configure(void)
> +test_ethdev_configure_port(int port)
>  {
>  	struct rte_eth_conf null_conf;
>  	struct rte_eth_link link;
>  
>  	memset(&null_conf, 0, sizeof(struct rte_eth_conf));
>  
> -	if ((TX_PORT >= RTE_MAX_ETHPORTS) || (RX_PORT >= RTE_MAX_ETHPORTS)\
> -		|| (RXTX_PORT >= RTE_MAX_ETHPORTS)) {
> -		printf(" TX/RX port exceed max eth ports\n");
> -		return -1;
> -	}
> -	if (rte_eth_dev_configure(TX_PORT, 1, 2, &null_conf) < 0) {
> -		printf("Configure failed for TX port\n");
> +	if (rte_eth_dev_configure(port, 1, 2, &null_conf) < 0) {
> +		printf("Configure failed for port %d\n", port);
>  		return -1;
>  	}
>  
>  	/* Test queue release */
> -	if (rte_eth_dev_configure(TX_PORT, 1, 1, &null_conf) < 0) {
> -		printf("Configure failed for TX port\n");
> -		return -1;
> -	}
> -	if (rte_eth_dev_configure(RX_PORT, 1, 1, &null_conf) < 0) {
> -		printf("Configure failed for RX port\n");
> -		return -1;
> -	}
> -	if (rte_eth_dev_configure(RXTX_PORT, 1, 1, &null_conf) < 0) {
> -		printf("Configure failed for RXTX port\n");
> +	if (rte_eth_dev_configure(port, 1, 1, &null_conf) < 0) {
> +		printf("Configure failed for port %d\n", port);
>  		return -1;
>  	}
>  
> -	if (rte_eth_tx_queue_setup(TX_PORT, 0, RING_SIZE, SOCKET0, NULL) < 0) {
> -		printf("TX queue setup failed\n");
> -		return -1;
> -	}
> -	if (rte_eth_rx_queue_setup(RX_PORT, 0, RING_SIZE, SOCKET0,
> -			NULL, mp) < 0) {
> -		printf("RX queue setup failed\n");
> -		return -1;
> -	}
> -	if (rte_eth_tx_queue_setup(RXTX_PORT, 0, RING_SIZE, SOCKET0, NULL) < 0) {
> -		printf("TX queue setup failed\n");
> +	if (rte_eth_tx_queue_setup(port, 0, RING_SIZE, SOCKET0, NULL) < 0) {
> +		printf("TX queue setup failed port %d\n", port);
>  		return -1;
>  	}
> -	if (rte_eth_rx_queue_setup(RXTX_PORT, 0, RING_SIZE, SOCKET0,
> +
> +	if (rte_eth_rx_queue_setup(port, 0, RING_SIZE, SOCKET0,
>  			NULL, mp) < 0) {
> -		printf("RX queue setup failed\n");
> +		printf("RX queue setup failed port %d\n", port);
>  		return -1;
>  	}
>  
> -	if (rte_eth_dev_start(TX_PORT) < 0) {
> -		printf("Error starting TX port\n");
> +	if (rte_eth_dev_start(port) < 0) {
> +		printf("Error starting port %d\n", port);
>  		return -1;
>  	}
> -	if (rte_eth_dev_start(RX_PORT) < 0) {
> -		printf("Error starting RX port\n");
> +
> +	rte_eth_link_get(port, &link);
> +
> +	return 0;
> +}
> +
> +static int
> +test_send_basic_packets(void)
> +{
> +	struct rte_mbuf  bufs[RING_SIZE];
> +	struct rte_mbuf *pbufs[RING_SIZE];
> +	int i;
> +
> +	printf("Testing send and receive RING_SIZE/2 packets (tx_porta -> rx_portb)\n");
> +
> +	for (i = 0; i < RING_SIZE/2; i++)
> +		pbufs[i] = &bufs[i];
> +
> +	if (rte_eth_tx_burst(tx_porta, 0, pbufs, RING_SIZE/2) < RING_SIZE/2) {
> +		printf("Failed to transmit packet burst port %d\n", tx_porta);
>  		return -1;
>  	}
> -	if (rte_eth_dev_start(RXTX_PORT) < 0) {
> -		printf("Error starting RX port\n");
> +
> +	if (rte_eth_rx_burst(rx_portb, 0, pbufs, RING_SIZE) != RING_SIZE/2) {
> +		printf("Failed to receive packet burst on port %d\n", rx_portb);
>  		return -1;
>  	}
>  
> -	rte_eth_link_get(TX_PORT, &link);
> -	rte_eth_link_get(RX_PORT, &link);
> -	rte_eth_link_get(RXTX_PORT, &link);
> +	for (i = 0; i < RING_SIZE/2; i++)
> +		if (pbufs[i] != &bufs[i]) {
> +			printf("Error: received data does not match that transmitted\n");
> +			return -1;
> +		}
>  
>  	return 0;
>  }
>  
>  static int
> -test_send_basic_packets(void)
> +test_send_basic_packets_port(int port)
>  {
>  	struct rte_mbuf  bufs[RING_SIZE];
>  	struct rte_mbuf *pbufs[RING_SIZE];
>  	int i;
>  
> -	printf("Testing ring pmd RX/TX\n");
> +	printf("Testing send and receive RING_SIZE/2 packets (cmdl_port0 -> cmdl_port0)\n");
>  
>  	for (i = 0; i < RING_SIZE/2; i++)
>  		pbufs[i] = &bufs[i];
>  
> -	if (rte_eth_tx_burst(TX_PORT, 0, pbufs, RING_SIZE/2) < RING_SIZE/2) {
> -		printf("Failed to transmit packet burst\n");
> +	if (rte_eth_tx_burst(port, 0, pbufs, RING_SIZE/2) < RING_SIZE/2) {
> +		printf("Failed to transmit packet burst port %d\n", port);
>  		return -1;
>  	}
>  
> -	if (rte_eth_rx_burst(RX_PORT, 0, pbufs, RING_SIZE) != RING_SIZE/2) {
> -		printf("Failed to receive packet burst\n");
> +	if (rte_eth_rx_burst(port, 0, pbufs, RING_SIZE) != RING_SIZE/2) {
> +		printf("Failed to receive packet burst on port %d\n", port);
>  		return -1;
>  	}
>  
> @@ -152,89 +148,92 @@ test_send_basic_packets(void)
>  	return 0;
>  }
>  
> +
>  static int
> -test_get_stats(void)
> +test_get_stats(int port)
>  {
>  	struct rte_eth_stats stats;
>  	struct rte_mbuf buf, *pbuf = &buf;
>  
> -	printf("Testing ring PMD stats\n");
> +	printf("Testing ring PMD stats_get port %d\n", port);
>  
>  	/* check stats of RXTX port, should all be zero */
> -	rte_eth_stats_get(RXTX_PORT, &stats);
> +
> +	rte_eth_stats_get(port, &stats);
>  	if (stats.ipackets != 0 || stats.opackets != 0 ||
>  			stats.ibytes != 0 || stats.obytes != 0 ||
>  			stats.ierrors != 0 || stats.oerrors != 0) {
> -		printf("Error: RXTX port stats are not zero\n");
> +		printf("Error: port %d stats are not zero\n", port);
>  		return -1;
>  	}
>  
>  	/* send and receive 1 packet and check for stats update */
> -	if (rte_eth_tx_burst(RXTX_PORT, 0, &pbuf, 1) != 1) {
> -		printf("Error sending packet to RXTX port\n");
> +	if (rte_eth_tx_burst(port, 0, &pbuf, 1) != 1) {
> +		printf("Error sending packet to port %d\n", port);
>  		return -1;
>  	}
> -	if (rte_eth_rx_burst(RXTX_PORT, 0, &pbuf, 1) != 1) {
> -		printf("Error receiving packet from RXTX port\n");
> +
> +	if (rte_eth_rx_burst(port, 0, &pbuf, 1) != 1) {
> +		printf("Error receiving packet from port %d\n", port);
>  		return -1;
>  	}
>  
> -	rte_eth_stats_get(RXTX_PORT, &stats);
> +	rte_eth_stats_get(port, &stats);
>  	if (stats.ipackets != 1 || stats.opackets != 1 ||
>  			stats.ibytes != 0 || stats.obytes != 0 ||
>  			stats.ierrors != 0 || stats.oerrors != 0) {
> -		printf("Error: RXTX port stats are not as expected\n");
> +		printf("Error: port %d stats are not as expected\n", port);
>  		return -1;
>  	}
>  	return 0;
>  }
>  
>  static int
> -test_stats_reset(void)
> +test_stats_reset(int port)
>  {
>  	struct rte_eth_stats stats;
>  	struct rte_mbuf buf, *pbuf = &buf;
>  
> -	printf("Testing ring PMD stats reset\n");
> +	printf("Testing ring PMD stats_reset port %d\n", port);
>  
> -	rte_eth_stats_reset(RXTX_PORT);
> +	rte_eth_stats_reset(port);
>  
>  	/* check stats of RXTX port, should all be zero */
> -	rte_eth_stats_get(RXTX_PORT, &stats);
> +	rte_eth_stats_get(port, &stats);
>  	if (stats.ipackets != 0 || stats.opackets != 0 ||
>  			stats.ibytes != 0 || stats.obytes != 0 ||
>  			stats.ierrors != 0 || stats.oerrors != 0) {
> -		printf("Error: RXTX port stats are not zero\n");
> +		printf("Error: port %d stats are not zero\n", port);
>  		return -1;
>  	}
>  
>  	/* send and receive 1 packet and check for stats update */
> -	if (rte_eth_tx_burst(RXTX_PORT, 0, &pbuf, 1) != 1) {
> -		printf("Error sending packet to RXTX port\n");
> +	if (rte_eth_tx_burst(port, 0, &pbuf, 1) != 1) {
> +		printf("Error sending packet to port %d\n", port);
>  		return -1;
>  	}
>  
> -	if (rte_eth_rx_burst(RXTX_PORT, 0, &pbuf, 1) != 1) {
> -		printf("Error receiving packet from RXTX port\n");
> +	if (rte_eth_rx_burst(port, 0, &pbuf, 1) != 1) {
> +		printf("Error receiving packet from port %d\n", port);
>  		return -1;
>  	}
>  
> -	rte_eth_stats_get(RXTX_PORT, &stats);
> +	rte_eth_stats_get(port, &stats);
>  	if (stats.ipackets != 1 || stats.opackets != 1 ||
>  			stats.ibytes != 0 || stats.obytes != 0 ||
>  			stats.ierrors != 0 || stats.oerrors != 0) {
> -		printf("Error: RXTX port stats are not as expected\n");
> +		printf("Error: port %d stats are not as expected\n", port);
>  		return -1;
>  	}
>  
> -	rte_eth_stats_reset(RXTX_PORT);
> +	rte_eth_stats_reset(port);
>  
>  	/* check stats of RXTX port, should all be zero */
> -	rte_eth_stats_get(RXTX_PORT, &stats);
> +	rte_eth_stats_get(port, &stats);
>  	if (stats.ipackets != 0 || stats.opackets != 0 ||
>  			stats.ibytes != 0 || stats.obytes != 0 ||
>  			stats.ierrors != 0 || stats.oerrors != 0) {
> -		printf("Error: RXTX port stats are not zero\n");
> +		printf("Error: port %d stats are not zero\n", port);
>  		return -1;
>  	}
>  
> @@ -242,162 +241,182 @@ test_stats_reset(void)
>  }
>  
>  static int
> -test_pmd_ring_pair_create_attach(void)
> +test_pmd_ring_pair_create_attach(int portd, int porte)
>  {
>  	struct rte_eth_stats stats, stats2;
>  	struct rte_mbuf buf, *pbuf = &buf;
>  	struct rte_eth_conf null_conf;
>  
> -	if ((RXTX_PORT2 >= RTE_MAX_ETHPORTS) || (RXTX_PORT3 >= RTE_MAX_ETHPORTS)) {
> -		printf(" TX/RX port exceed max eth ports\n");
> -		return -1;
> -	}
> -	if ((rte_eth_dev_configure(RXTX_PORT2, 1, 1, &null_conf) < 0)
> -		|| (rte_eth_dev_configure(RXTX_PORT3, 1, 1, &null_conf) < 0)) {
> -		printf("Configure failed for RXTX port\n");
> +	if ((rte_eth_dev_configure(portd, 1, 1, &null_conf) < 0)
> +		|| (rte_eth_dev_configure(porte, 1, 1, &null_conf) < 0)) {
> +		printf("Configure failed for port\n");
>  		return -1;
>  	}
>  
> -	if ((rte_eth_tx_queue_setup(RXTX_PORT2, 0, RING_SIZE, SOCKET0, NULL) < 0)
> -		|| (rte_eth_tx_queue_setup(RXTX_PORT3, 0, RING_SIZE, SOCKET0, NULL) < 0)) {
> +	if ((rte_eth_tx_queue_setup(portd, 0, RING_SIZE, SOCKET0, NULL) < 0)
> +		|| (rte_eth_tx_queue_setup(porte, 0, RING_SIZE, SOCKET0, NULL) < 0)) {
>  		printf("TX queue setup failed\n");
>  		return -1;
>  	}
>  
> -	if ((rte_eth_rx_queue_setup(RXTX_PORT2, 0, RING_SIZE, SOCKET0, NULL, mp) < 0)
> -		|| (rte_eth_rx_queue_setup(RXTX_PORT3, 0, RING_SIZE, SOCKET0, NULL, mp) < 0)) {
> +	if ((rte_eth_rx_queue_setup(portd, 0, RING_SIZE, SOCKET0, NULL, mp) < 0)
> +		|| (rte_eth_rx_queue_setup(porte, 0, RING_SIZE, SOCKET0, NULL, mp) < 0)) {
>  		printf("RX queue setup failed\n");
>  		return -1;
>  	}
>  
> -	if ((rte_eth_dev_start(RXTX_PORT2) < 0)
> -		|| (rte_eth_dev_start(RXTX_PORT3) < 0)) {
> -		printf("Error starting RXTX port\n");
> +	if ((rte_eth_dev_start(portd) < 0)
> +		|| (rte_eth_dev_start(porte) < 0)) {
> +		printf("Error starting port\n");
> +		return -1;
> +	}
> +
> +	rte_eth_stats_reset(portd);
> +	/* check stats of port, should all be zero */
> +	rte_eth_stats_get(portd, &stats);
> +	if (stats.ipackets != 0 || stats.opackets != 0 ||
> +			stats.ibytes != 0 || stats.obytes != 0 ||
> +			stats.ierrors != 0 || stats.oerrors != 0) {
> +		printf("Error: port %d stats are not zero\n", portd);
> +		return -1;
> +	}
> +
> +	rte_eth_stats_reset(porte);
> +	/* check stats of port, should all be zero */
> +	rte_eth_stats_get(porte, &stats2);
> +	if (stats2.ipackets != 0 || stats2.opackets != 0 ||
> +			stats2.ibytes != 0 || stats2.obytes != 0 ||
> +			stats2.ierrors != 0 || stats2.oerrors != 0) {
> +		printf("Error: port %d stats are not zero\n", porte);
>  		return -1;
>  	}
>  
>  	/*
> -	 * send and receive 1 packet (RXTX_PORT2 -> RXTX_PORT3)
> +	 * send and receive 1 packet (portd -> porte)
>  	 * and check for stats update
>  	 */
> -	if (rte_eth_tx_burst(RXTX_PORT2, 0, &pbuf, 1) != 1) {
> -		printf("Error sending packet to RXTX port\n");
> +	printf("Testing send and receive 1 packet (portd -> porte)\n");
> +	if (rte_eth_tx_burst(portd, 0, &pbuf, 1) != 1) {
> +		printf("Error sending packet to port %d\n", portd);
>  		return -1;
>  	}
>  
> -	if (rte_eth_rx_burst(RXTX_PORT3, 0, &pbuf, 1) != 1) {
> -		printf("Error receiving packet from RXTX port\n");
> +	if (rte_eth_rx_burst(porte, 0, &pbuf, 1) != 1) {
> +		printf("Error receiving packet from port %d\n", porte);
>  		return -1;
>  	}
>  
> -	rte_eth_stats_get(RXTX_PORT2, &stats);
> -	rte_eth_stats_get(RXTX_PORT3, &stats2);
> +	rte_eth_stats_get(portd, &stats);
> +	rte_eth_stats_get(porte, &stats2);
>  	if (stats.ipackets != 0 || stats.opackets != 1 ||
>  			stats.ibytes != 0 || stats.obytes != 0 ||
>  			stats.ierrors != 0 || stats.oerrors != 0) {
> -		printf("Error: RXTX port stats are not as expected\n");
> +		printf("Error: port %d stats are not as expected\n", portd);
>  		return -1;
>  	}
>  
>  	if (stats2.ipackets != 1 || stats2.opackets != 0 ||
>  			stats2.ibytes != 0 || stats2.obytes != 0 ||
>  			stats2.ierrors != 0 || stats2.oerrors != 0) {
> -		printf("Error: RXTX port stats are not as expected\n");
> +		printf("Error: port %d stats are not as expected\n", porte);
>  		return -1;
>  	}
>  
>  	/*
> -	 * send and receive 1 packet (RXTX_PORT3 -> RXTX_PORT2)
> +	 * send and receive 1 packet (porte -> portd)
>  	 * and check for stats update
>  	 */
> -	if (rte_eth_tx_burst(RXTX_PORT3, 0, &pbuf, 1) != 1) {
> -		printf("Error sending packet to RXTX port\n");
> +	printf("Testing send and receive 1 packet (porte -> portd)\n");
> +	if (rte_eth_tx_burst(porte, 0, &pbuf, 1) != 1) {
> +		printf("Error sending packet to port %d\n", porte);
>  		return -1;
>  	}
>  
> -	if (rte_eth_rx_burst(RXTX_PORT2, 0, &pbuf, 1) != 1) {
> -		printf("Error receiving packet from RXTX port\n");
> +	if (rte_eth_rx_burst(portd, 0, &pbuf, 1) != 1) {
> +		printf("Error receiving packet from port %d\n", portd);
>  		return -1;
>  	}
>  
> -	rte_eth_stats_get(RXTX_PORT2, &stats);
> -	rte_eth_stats_get(RXTX_PORT3, &stats2);
> +	rte_eth_stats_get(portd, &stats);
> +	rte_eth_stats_get(porte, &stats2);
>  	if (stats.ipackets != 1 || stats.opackets != 1 ||
>  			stats.ibytes != 0 || stats.obytes != 0 ||
>  			stats.ierrors != 0 || stats.oerrors != 0) {
> -		printf("Error: RXTX port stats are not as expected\n");
> +		printf("Error: port %d stats are not as expected\n", portd);
>  		return -1;
>  	}
>  
>  	if (stats2.ipackets != 1 || stats2.opackets != 1 ||
>  			stats2.ibytes != 0 || stats2.obytes != 0 ||
>  			stats2.ierrors != 0 || stats2.oerrors != 0) {
> -		printf("Error: RXTX port stats are not as expected\n");
> +		printf("Error: port %d stats are not as expected\n", porte);
>  		return -1;
>  	}
>  
>  	/*
> -	 * send and receive 1 packet (RXTX_PORT2 -> RXTX_PORT2)
> +	 * send and receive 1 packet (portd -> portd)
>  	 * and check for stats update
>  	 */
> -	if (rte_eth_tx_burst(RXTX_PORT2, 0, &pbuf, 1) != 1) {
> -		printf("Error sending packet to RXTX port\n");
> +	printf("Testing send and receive 1 packet (portd -> portd)\n");
> +	if (rte_eth_tx_burst(portd, 0, &pbuf, 1) != 1) {
> +		printf("Error sending packet to port %d\n", portd);
>  		return -1;
>  	}
>  
> -	if (rte_eth_rx_burst(RXTX_PORT2, 0, &pbuf, 1) != 1) {
> -		printf("Error receiving packet from RXTX port\n");
> +	if (rte_eth_rx_burst(portd, 0, &pbuf, 1) != 1) {
> +		printf("Error receiving packet from port %d\n", porte);
>  		return -1;
>  	}
>  
> -	rte_eth_stats_get(RXTX_PORT2, &stats);
> -	rte_eth_stats_get(RXTX_PORT3, &stats2);
> +	rte_eth_stats_get(portd, &stats);
> +	rte_eth_stats_get(porte, &stats2);
>  	if (stats.ipackets != 2 || stats.opackets != 2 ||
>  			stats.ibytes != 0 || stats.obytes != 0 ||
>  			stats.ierrors != 0 || stats.oerrors != 0) {
> -		printf("Error: RXTX port stats are not as expected\n");
> +		printf("Error: port %d stats are not as expected\n", portd);
>  		return -1;
>  	}
>  
>  	if (stats2.ipackets != 1 || stats2.opackets != 1 ||
>  			stats2.ibytes != 0 || stats2.obytes != 0 ||
>  			stats2.ierrors != 0 || stats2.oerrors != 0) {
> -		printf("Error: RXTX port stats are not as expected\n");
> +		printf("Error: port %d stats are not as expected\n", porte);
>  		return -1;
>  	}
>  
>  	/*
> -	 * send and receive 1 packet (RXTX_PORT3 -> RXTX_PORT3)
> +	 * send and receive 1 packet (porte -> porte)
>  	 * and check for stats update
>  	 */
> -	if (rte_eth_tx_burst(RXTX_PORT3, 0, &pbuf, 1) != 1) {
> -		printf("Error sending packet to RXTX port\n");
> +	printf("Testing send and receive 1 packet (porte -> porte)\n");
> +	if (rte_eth_tx_burst(porte, 0, &pbuf, 1) != 1) {
> +		printf("Error sending packet to port %d\n", porte);
>  		return -1;
>  	}
>  
> -	if (rte_eth_rx_burst(RXTX_PORT3, 0, &pbuf, 1) != 1) {
> -		printf("Error receiving packet from RXTX port\n");
> +	if (rte_eth_rx_burst(porte, 0, &pbuf, 1) != 1) {
> +		printf("Error receiving packet from port %d\n", porte);
>  		return -1;
>  	}
>  
> -	rte_eth_stats_get(RXTX_PORT2, &stats);
> -	rte_eth_stats_get(RXTX_PORT3, &stats2);
> +	rte_eth_stats_get(portd, &stats);
> +	rte_eth_stats_get(porte, &stats2);
>  	if (stats.ipackets != 2 || stats.opackets != 2 ||
>  			stats.ibytes != 0 || stats.obytes != 0 ||
>  			stats.ierrors != 0 || stats.oerrors != 0) {
> -		printf("Error: RXTX port stats are not as expected\n");
> +		printf("Error: port %d stats are not as expected\n", portd);
>  		return -1;
>  	}
>  
>  	if (stats2.ipackets != 2 || stats2.opackets != 2 ||
>  			stats2.ibytes != 0 || stats2.obytes != 0 ||
>  			stats2.ierrors != 0 || stats2.oerrors != 0) {
> -		printf("Error: RXTX port stats are not as expected\n");
> +		printf("Error: port %d stats are not as expected\n", porte);
>  		return -1;
>  	}
>  
> -	rte_eth_dev_stop(RXTX_PORT2);
> -	rte_eth_dev_stop(RXTX_PORT3);
> +	rte_eth_dev_stop(portd);
> +	rte_eth_dev_stop(porte);
>  
>  	return 0;
>  }
> @@ -405,36 +424,95 @@ test_pmd_ring_pair_create_attach(void)
>  static int
>  test_pmd_ring(void)
>  {
> +	struct rte_ring *rxtx[NUM_RINGS];
> +	int cmdl_port0 = 0;
> +	uint8_t nb_ports;
> +
> +	nb_ports = rte_eth_dev_count();
> +	printf("nb_ports=%d\n", (int)nb_ports);
> +
> +	/*  create the rings and eth_rings in the test code.
> +	 *  This does not test the rte_pmd_ring_devinit function.
> +	 *
> +	 *  Test with the command line option --vdev=eth_ring0 to test rte_pmd_ring_devinit.
> +	 */
> +	rxtx[0] = rte_ring_create("R0", RING_SIZE, SOCKET0, RING_F_SP_ENQ|RING_F_SC_DEQ);
> +	if (rxtx[0] == NULL) {
> +		printf("rte_ring_create R0 failed");
> +		return -1;
> +	}
> +
> +	rxtx[1] = rte_ring_create("R1", RING_SIZE, SOCKET0, RING_F_SP_ENQ|RING_F_SC_DEQ);
> +	if (rxtx[1] == NULL) {
> +		printf("rte_ring_create R1 failed");
> +		return -1;
> +	}
> +
> +	tx_porta = rte_eth_from_rings("eth_ringa", rxtx, NUM_RINGS, rxtx, NUM_RINGS, SOCKET0);
> +	rx_portb = rte_eth_from_rings("eth_ringb", rxtx, NUM_RINGS, rxtx, NUM_RINGS, SOCKET0);
> +	rxtx_portc = rte_eth_from_rings("eth_ringc", rxtx, NUM_RINGS, rxtx, NUM_RINGS, SOCKET0);
> +	rxtx_portd = rte_eth_from_rings("eth_ringd", rxtx, NUM_RINGS, rxtx, NUM_RINGS, SOCKET0);
> +	rxtx_porte = rte_eth_from_rings("eth_ringe", rxtx, NUM_RINGS, rxtx, NUM_RINGS, SOCKET0);
> +
> +	printf("tx_porta=%d rx_portb=%d rxtx_portc=%d rxtx_portd=%d rxtx_porte=%d\n",
> +			tx_porta, rx_portb, rxtx_portc, rxtx_portd, rxtx_porte);
> +
> +	if ((tx_porta == -1) || (rx_portb == -1) || (rxtx_portc == -1)
> +		|| (rxtx_portd == -1) || (rxtx_porte == -1)) {
> +		printf("rte_eth_from rings failed\n");
> +		return -1;
> +	}
> +
>  	mp = rte_pktmbuf_pool_create("mbuf_pool", NB_MBUF, 32,
>  		0, RTE_MBUF_DEFAULT_BUF_SIZE, rte_socket_id());
>  	if (mp == NULL)
>  		return -1;
>  
> -	if ((TX_PORT >= RTE_MAX_ETHPORTS) || (RX_PORT >= RTE_MAX_ETHPORTS)\
> -		|| (RXTX_PORT >= RTE_MAX_ETHPORTS)) {
> -		printf(" TX/RX port exceed max eth ports\n");
> +	if ((tx_porta >= RTE_MAX_ETHPORTS) || (rx_portb >= RTE_MAX_ETHPORTS)
> +		|| (rxtx_portc >= RTE_MAX_ETHPORTS)
> +		|| (rxtx_portd >= RTE_MAX_ETHPORTS)
> +		|| (rxtx_porte >= RTE_MAX_ETHPORTS)) {
> +		printf(" port exceed max eth ports\n");
>  		return -1;
>  	}
>  
> -	if (test_ethdev_configure() < 0)
> +	if (test_ethdev_configure_port(tx_porta) < 0)
> +		return -1;
> +
> +	if (test_ethdev_configure_port(rx_portb) < 0)
> +		return -1;
> +
> +	if (test_ethdev_configure_port(rxtx_portc) < 0)
>  		return -1;
>  
>  	if (test_send_basic_packets() < 0)
>  		return -1;
>  
> -	if (test_get_stats() < 0)
> +	if (test_get_stats(rxtx_portc) < 0)
>  		return -1;
>  
> -	if (test_stats_reset() < 0)
> +	if (test_stats_reset(rxtx_portc) < 0)
>  		return -1;
>  
> -	rte_eth_dev_stop(RX_PORT);
> -	rte_eth_dev_stop(TX_PORT);
> -	rte_eth_dev_stop(RXTX_PORT);
> +	rte_eth_dev_stop(tx_porta);
> +	rte_eth_dev_stop(rx_portb);
> +	rte_eth_dev_stop(rxtx_portc);
>  
> -	if (test_pmd_ring_pair_create_attach() < 0)
> +	if (test_pmd_ring_pair_create_attach(rxtx_portd, rxtx_porte) < 0)
>  		return -1;
>  
> +	if (nb_ports > 0) {
> +		/* test port 0 created with the --vdev=eth_ring0 command line option */
> +		if (test_ethdev_configure_port(cmdl_port0) < 0)
> +			return -1;
> +		if (test_send_basic_packets_port(cmdl_port0) < 0)
> +			return -1;
> +		if (test_stats_reset(cmdl_port0) < 0)
> +			return -1;
> +		if (test_get_stats(cmdl_port0) < 0)
> +			return -1;
> +		rte_eth_dev_stop(cmdl_port0);
> +	}
>  	return 0;
>  }
>  
> diff --git a/doc/guides/nics/pcap_ring.rst b/doc/guides/nics/pcap_ring.rst
> index 5d65dc6..46aa3ac 100644
> --- a/doc/guides/nics/pcap_ring.rst
> +++ b/doc/guides/nics/pcap_ring.rst
> @@ -1,5 +1,5 @@
>  ..  BSD LICENSE
> -    Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
> +    Copyright(c) 2010-2015 Intel Corporation. All rights reserved.
>      All rights reserved.
>  
>      Redistribution and use in source and binary forms, with or without
> @@ -217,7 +217,7 @@ Using the Poll Mode Driver from an Application
>  Both drivers can provide similar APIs to allow the user to create a PMD, that is,
>  rte_ethdev structure, instances at run-time in the end-application,
>  for example, using rte_eth_from_rings() or rte_eth_from_pcaps() APIs.
> -For the rings- based PMD, this functionality could be used, for example,
> +For the rings-based PMD, this functionality could be used, for example,
>  to allow data exchange between cores using rings to be done in exactly the
>  same way as sending or receiving packets from an Ethernet device.
>  For the libpcap-based PMD, it allows an application to open one or more pcap files
> @@ -231,26 +231,30 @@ for reception on the same port (error handling omitted for clarity):
>  
>  .. code-block:: c
>  
> -    struct rte_ring *r1, *r2;
> -    int port1, port2;
> +    #define RING_SIZE 256
> +    #define NUM_RINGS 2
> +    #define SOCKET0 0
>  
> -    r1 = rte_ring_create("R1", 256, SOCKET0,RING_F_SP_ENQ|RING_F_SC_DEQ);
> -    r2 = rte_ring_create("R2", 256, SOCKET0, RING_F_SP_ENQ|RING_F_SC_DEQ);
> +    struct rte_ring *ring[NUM_RINGS];
> +    int port0, port1;
>  
> -    /* create an ethdev where RX and TX are done to/from r1, and * another from r2 */
> +    ring[0] = rte_ring_create("R0", RING_SIZE, SOCKET0, RING_F_SP_ENQ|RING_F_SC_DEQ);
> +    ring[1] = rte_ring_create("R1", RING_SIZE, SOCKET0, RING_F_SP_ENQ|RING_F_SC_DEQ);
>  
> -    port1 = rte_eth_from_rings(r1, 1, r1, 1, SOCKET0);
> -    port2 = rte_eth_from_rings(r2, 1, r2, 1, SOCKET0);
> +    /* create two ethdev's */
> +
> +    port0 = rte_eth_from_rings("eth_ring0", ring, NUM_RINGS, ring, NUM_RINGS, SOCKET0);
> +    port1 = rte_eth_from_rings("eth_ring1", ring, NUM_RINGS, ring, NUM_RINGS, SOCKET0);
>  
>  
>  To create two pseudo-Ethernet ports where the traffic is switched between them,
> -that is, traffic sent to port 1 is read back from port 2 and vice-versa,
> +that is, traffic sent to port 0 is read back from port 1 and vice-versa,
>  the final two lines could be changed as below:
>  
>  .. code-block:: c
>  
> -    port1 = rte_eth_from_rings(r1, 1, r2, 1, SOCKET0);
> -    port2 = rte_eth_from_rings(r2, 1, r1, 1, SOCKET0);
> +    port0 = rte_eth_from_rings("eth_ring0", &ring[0], 1, &ring[1], 1, SOCKET0);
> +    port1 = rte_eth_from_rings("eth_ring1", &ring[1], 1, &ring[0], 1, SOCKET0);
>  
>  This type of configuration could be useful in a pipeline model, for example,
>  where one may want to have inter-core communication using pseudo Ethernet devices rather than raw rings,
> -- 
> 1.9.1
> 

  reply	other threads:[~2015-11-24 16:16 UTC|newest]

Thread overview: 270+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <PATCH>
2014-12-08 17:18 ` [dpdk-dev] [PATCH] doc: add bsd license to svg file Bernard Iremonger
2014-12-11 13:42   ` De Lara Guarch, Pablo
2015-06-10 15:12 ` [dpdk-dev] [PATCH 0/2] doc: kni command line fixes Bernard Iremonger
2015-06-10 15:12   ` [dpdk-dev] [PATCH 1/2] doc: correct kni command line in virtio chapter Bernard Iremonger
2015-06-15  2:29     ` Zhang, Helin
2015-06-10 15:12   ` [dpdk-dev] [PATCH 2/2] doc: fix kni command line in Kernel NIC Interface chapter Bernard Iremonger
2015-06-15  2:30     ` Zhang, Helin
2015-06-10 17:13   ` [dpdk-dev] [PATCH 0/2] doc: kni command line fixes Mcnamara, John
2015-07-27 21:45     ` Thomas Monjalon
2015-06-11 14:33 ` [dpdk-dev] [PATCH] doc: update port attach and detach in Testpmd Runtime Functions chapter Bernard Iremonger
2015-06-16  2:45   ` Tetsuya Mukawa
2015-07-28 10:22     ` Thomas Monjalon
2015-06-12 16:21 ` [dpdk-dev] [PATCH v3 0/2] bonding PCI Port Hotplug Bernard Iremonger
2015-06-12 16:21   ` [dpdk-dev] [PATCH v3 1/2] bonding: add support for " Bernard Iremonger
2015-06-12 16:21   ` [dpdk-dev] [PATCH v3 2/2] test-pmd: modified testpmd for link_bonding Bernard Iremonger
2015-06-19 16:33   ` [dpdk-dev] [PATCH v3 0/2] bonding PCI Port Hotplug Declan Doherty
2015-06-16 11:30 ` [dpdk-dev] [PATCH v2 0/2] virtio: " Bernard Iremonger
2015-06-16 11:30   ` [dpdk-dev] [PATCH v3 1/2] virtio: add support for " Bernard Iremonger
2015-06-17  1:27     ` Ouyang, Changchun
2015-06-16 11:30   ` [dpdk-dev] [PATCH v3 2/2] virtio: check vq parameter Bernard Iremonger
2015-06-17  1:27     ` Ouyang, Changchun
2015-06-17 11:38 ` [dpdk-dev] [PATCH v4 0/6] i40e: PCI Port Hotplug Changes Bernard Iremonger
2015-06-17 11:38   ` [dpdk-dev] [PATCH v4 1/6] i40e: changes to support PCI Port Hotplug Bernard Iremonger
2015-06-17 11:38   ` [dpdk-dev] [PATCH v4 2/6] i40e: release vmdq vsi's in dev_close Bernard Iremonger
2015-06-17 11:38   ` [dpdk-dev] [PATCH v4 3/6] i40e: increase ASQ_DELAY_MS to 100 in i40evf_wait_cmd_done() Bernard Iremonger
2015-06-17 11:39 ` [dpdk-dev] [PATCH v4 4/6] i40e: call _clear_cmd() when error occurs Bernard Iremonger
2015-06-17 11:39   ` [dpdk-dev] [PATCH v4 5/6] i40e: clear queues in i40evf_dev_stop Bernard Iremonger
2015-06-17 11:39   ` [dpdk-dev] [PATCH v4 6/6] i40e: check rxq parameter in i40e_reset_rx_queue Bernard Iremonger
2015-06-18 12:44 ` [dpdk-dev] [PATCH v5] e1000: igb and em1000 PCI Port Hotplug changes Bernard Iremonger
2015-06-19 17:03 ` [dpdk-dev] [PATCH v5 0/6] i40e: PCI Port Hotplug Changes Bernard Iremonger
2015-06-19 17:03   ` [dpdk-dev] [PATCH v5 1/6] i40e: changes to support PCI Port Hotplug Bernard Iremonger
2015-06-19 17:03   ` [dpdk-dev] [PATCH v5 2/6] i40e: release vmdq vsi's in dev_close Bernard Iremonger
2015-06-19 17:03   ` [dpdk-dev] [PATCH v5 3/6] i40e: increase ASQ_DELAY_MS to 100 and MAX_TRY_TIMES to 20 in i40evf_wait_cmd_done() Bernard Iremonger
2015-06-19 17:04   ` [dpdk-dev] [PATCH v5 4/6] i40e: call _clear_cmd() when error occurs Bernard Iremonger
2015-06-19 17:04   ` [dpdk-dev] [PATCH v5 5/6] i40e: clear queues in i40evf_dev_stop Bernard Iremonger
2015-06-19 17:04   ` [dpdk-dev] [PATCH v5 6/6] i40e: check rxq parameter in i40e_reset_rx_queue Bernard Iremonger
2015-06-25  2:28   ` [dpdk-dev] [PATCH v5 0/6] i40e: PCI Port Hotplug Changes Zhang, Helin
2015-06-22 10:44 ` [dpdk-dev] [PATCH v6] e1000: igb and em1000 PCI Port Hotplug changes Bernard Iremonger
2015-06-25  2:33   ` Zhang, Helin
2015-06-25  9:04     ` Iremonger, Bernard
2015-06-26  8:56   ` Zhang, Helin
2015-06-24 15:08 ` [dpdk-dev] [PATCH v5] ixgbe: changes to support PCI Port Hotplug Bernard Iremonger
2015-06-25 11:41   ` Ananyev, Konstantin
2015-06-25 14:30 ` [dpdk-dev] [PATCH] librte_ether: release memory in uninit function Bernard Iremonger
2015-06-25 14:41   ` Stephen Hemminger
2015-06-25 18:32   ` Ananyev, Konstantin
2015-06-26  8:17     ` Iremonger, Bernard
2015-06-26  9:32 ` [dpdk-dev] [PATCH v2] " Bernard Iremonger
2015-06-26  9:55   ` Ananyev, Konstantin
2015-06-29  8:54   ` Qiu, Michael
2015-06-29 10:20     ` Iremonger, Bernard
2015-06-29 15:22       ` Qiu, Michael
2015-06-29 16:42         ` Iremonger, Bernard
2015-06-30  1:31           ` Qiu, Michael
2015-07-06 11:35             ` Qiu, Michael
2015-07-07  3:38               ` Tetsuya Mukawa
2015-07-07 10:53                 ` Iremonger, Bernard
2015-07-08  3:47                   ` Tetsuya Mukawa
2015-07-08  9:49                     ` Iremonger, Bernard
2015-07-08  9:59                       ` Thomas Monjalon
2015-07-09  3:32                         ` Tetsuya Mukawa
2015-07-14  5:15                           ` Qiu, Michael
2015-07-09  5:46                       ` [dpdk-dev] [PATCH] doc: Fix doxygen comments of rte_eth_dev_close() and rte_eth_dev_detach() Tetsuya Mukawa
2015-07-09  7:28                         ` Thomas Monjalon
2015-07-09  8:10                           ` Tetsuya Mukawa
2015-07-09  8:19                       ` [dpdk-dev] [PATCH v2] " Tetsuya Mukawa
2015-07-10 22:31                         ` Thomas Monjalon
2015-07-02 14:36 ` [dpdk-dev] [PATCH v6 0/2] PCI Port Hotplug Bernard Iremonger
2015-07-02 14:36   ` [dpdk-dev] [PATCH v6 1/2] ixgbe: changes to support " Bernard Iremonger
2015-07-02 14:36   ` [dpdk-dev] [PATCH v2] librte_ether: release memory in uninit function Bernard Iremonger
2015-07-02 14:36   ` [dpdk-dev] [PATCH v6 2/2] ixgbe: release queue memory in close functions Bernard Iremonger
2015-07-02 14:59   ` [dpdk-dev] [PATCH v6 0/2] PCI Port Hotplug Ananyev, Konstantin
2015-07-19 15:42     ` Thomas Monjalon
2015-07-03 14:03 ` [dpdk-dev] [PATCH v6 0/7] i40e: PCI Port Hotplug Changes Bernard Iremonger
2015-07-03 14:03   ` [dpdk-dev] [PATCH v6 1/7] i40e: changes to support PCI Port Hotplug Bernard Iremonger
2015-07-03 14:03   ` [dpdk-dev] [PATCH v6 2/7] i40e: release vmdq vsi's in dev_close Bernard Iremonger
2015-07-03 14:03   ` [dpdk-dev] [PATCH v6 3/7] i40e: increase ASQ_DELAY_MS to 100 and MAX_TRY_TIMES to 20 in i40evf_wait_cmd_done() Bernard Iremonger
2015-07-03 14:03   ` [dpdk-dev] [PATCH v6 4/7] i40e: call _clear_cmd() when error occurs Bernard Iremonger
2015-07-03 14:03   ` [dpdk-dev] [PATCH v6 5/7] i40e: clear queues in i40evf_dev_stop Bernard Iremonger
2015-07-03 14:03   ` [dpdk-dev] [PATCH v6 6/7] i40e: check rxq parameter in i40e_reset_rx_queue Bernard Iremonger
2015-07-03 14:04   ` [dpdk-dev] [PATCH v6 7/7] i40e: release queue memory in close functions Bernard Iremonger
2015-07-10 20:44   ` [dpdk-dev] [PATCH v6 0/7] i40e: PCI Port Hotplug Changes Zhang, Helin
2015-07-19 19:39     ` Thomas Monjalon
2015-07-03 14:38 ` [dpdk-dev] [PATCH v7 0/2] e1000: PCI Port Hotplug changes Bernard Iremonger
2015-07-03 14:38   ` [dpdk-dev] [PATCH v7 1/2] e1000: igb and em1000 " Bernard Iremonger
2015-07-13 15:53     ` Zhang, Helin
2015-07-03 14:38   ` [dpdk-dev] [PATCH v7 2/2] e1000: free queue memory in close functions Bernard Iremonger
2015-07-13 15:54     ` Zhang, Helin
2015-07-19 15:26   ` [dpdk-dev] [PATCH v7 0/2] e1000: PCI Port Hotplug changes Thomas Monjalon
2015-07-07  9:18 ` [dpdk-dev] [PATCH v4 0/4] virtio: PCI Port Hotplug Bernard Iremonger
2015-07-07  9:18   ` [dpdk-dev] [PATCH v4 1/4] virtio: add support for " Bernard Iremonger
2015-07-07  9:18   ` [dpdk-dev] [PATCH v4 2/4] virtio: check vq parameter in virtqueue_detatch_unused() function Bernard Iremonger
2015-07-07  9:18   ` [dpdk-dev] [PATCH v4 3/4] virtio: free queue memory in virtio_dev_close() Bernard Iremonger
2015-07-07 18:04     ` Stephen Hemminger
2015-07-07  9:18   ` [dpdk-dev] [PATCH v4 4/4] test-pmd: remove call to rte_eth_promiscuous_disable() from detach_port() Bernard Iremonger
2015-07-08  0:42     ` Ouyang, Changchun
2015-07-09  2:04       ` Tetsuya Mukawa
2015-07-07 10:21 ` [dpdk-dev] [PATCH v4 0/3] bonding PCI Port Hotplug Bernard Iremonger
2015-07-07 10:21   ` [dpdk-dev] [PATCH v4 1/3] bonding: add support for " Bernard Iremonger
2015-07-15 10:22     ` Declan Doherty
2015-07-07 10:21   ` [dpdk-dev] [PATCH v4 2/3] test-pmd: modified testpmd for link_bonding Bernard Iremonger
2015-07-07 10:21   ` [dpdk-dev] [PATCH v4 3/3] bonding: free queue memory in stop function Bernard Iremonger
2015-07-07 13:09 ` [dpdk-dev] [PATCH v4 0/1] ring PCI Port Hotplug Bernard Iremonger
2015-07-07 13:09   ` [dpdk-dev] [PATCH v4 1/1] ring: changes to support " Bernard Iremonger
2015-07-18 20:27     ` Thomas Monjalon
2015-07-21 15:36       ` Iremonger, Bernard
2015-07-27  2:52     ` Thomas Monjalon
2015-07-13 13:04 ` [dpdk-dev] [PATCH v3 0/2] librte_ether release memory Bernard Iremonger
2015-07-13 13:04   ` [dpdk-dev] [PATCH v3 1/2] librte_ether: release memory in uninit function Bernard Iremonger
2015-07-17 13:55     ` Thomas Monjalon
2015-07-13 13:04   ` [dpdk-dev] [PATCH v3 2/2] librte_ether: release queue array memory in close function Bernard Iremonger
2015-07-19 21:37     ` Thomas Monjalon
2015-07-14  4:51   ` [dpdk-dev] [PATCH v3 0/2] librte_ether release memory Qiu, Michael
2015-07-14 13:10 ` [dpdk-dev] [PATCH v5 0/4] virtio PCI Port Hotplug Bernard Iremonger
2015-07-14 13:10   ` [dpdk-dev] [PATCH 1/5] virtio: add support for " Bernard Iremonger
2015-07-14 13:10   ` [dpdk-dev] [PATCH 2/5] virtio: check vq parameter in virtqueue_detatch_unused() function Bernard Iremonger
2015-07-14 13:10   ` [dpdk-dev] [PATCH 3/5] virtio: add proper queue release Bernard Iremonger
2015-07-14 13:10   ` [dpdk-dev] [PATCH 4/5] virtio: free queue memory in virtio_dev_close() Bernard Iremonger
2015-07-14 18:28     ` Stephen Hemminger
2015-07-15  8:27       ` Iremonger, Bernard
2015-07-15  8:38         ` Ouyang, Changchun
2015-07-15  8:50           ` Iremonger, Bernard
2015-07-15  1:36     ` Ouyang, Changchun
2015-07-15  8:01       ` Iremonger, Bernard
2015-07-15  8:36         ` Ouyang, Changchun
2015-07-14 13:10   ` [dpdk-dev] [PATCH v5 5/5] test-pmd: remove call to rte_eth_promiscuous_disable() from detach_port() Bernard Iremonger
2015-07-15 13:50 ` [dpdk-dev] [PATCH v6 0/6] virtio PCI Port Hotplug Bernard Iremonger
2015-07-15 13:51   ` [dpdk-dev] [PATCH v6 1/6] virtio: add support for " Bernard Iremonger
2015-07-15 13:51   ` [dpdk-dev] [PATCH v6 2/6] virtio: check vq parameter in virtqueue_detatch_unused() function Bernard Iremonger
2015-07-15 13:51   ` [dpdk-dev] [PATCH v6 3/6] virtio: add proper queue release Bernard Iremonger
2015-07-15 13:51   ` [dpdk-dev] [PATCH v6 4/6] virtio: free queue memory in virtio_dev_close() Bernard Iremonger
2015-07-15 13:51   ` [dpdk-dev] [PATCH v6 5/6] virtio: use queue_release in dev_uninit Bernard Iremonger
2015-07-15 13:51   ` [dpdk-dev] [PATCH v6 6/6] test-pmd: remove call to rte_eth_promiscuous_disable() from detach_port() Bernard Iremonger
2015-07-17  9:23     ` Xu, Qian Q
2015-07-17  0:53   ` [dpdk-dev] [PATCH v6 0/6] virtio PCI Port Hotplug Stephen Hemminger
2015-07-19 20:12     ` Thomas Monjalon
2015-07-15 15:32 ` [dpdk-dev] [PATCH v5 0/3] bonding " Bernard Iremonger
2015-07-15 15:32   ` [dpdk-dev] [PATCH v5 1/3] bonding: add support for " Bernard Iremonger
2015-07-18 20:39     ` Thomas Monjalon
2015-07-21 10:18       ` Iremonger, Bernard
2015-07-15 15:32   ` [dpdk-dev] [PATCH v5 2/3] test-pmd: modified testpmd for link_bonding Bernard Iremonger
2015-07-15 15:32   ` [dpdk-dev] [PATCH v5 3/3] bonding: free queue memory in stop function Bernard Iremonger
2015-07-21 15:16 ` [dpdk-dev] [PATCH v6 0/3] bonding PCI Port Hotplug Bernard Iremonger
2015-07-21 15:16   ` [dpdk-dev] [PATCH v6 1/3] bonding: add support for " Bernard Iremonger
2015-07-21 15:16   ` [dpdk-dev] [PATCH v6 2/3] test-pmd: modified testpmd for link_bonding Bernard Iremonger
2015-07-21 15:16   ` [dpdk-dev] [PATCH v6 3/3] bonding: free queue memory in stop function Bernard Iremonger
2015-07-27  2:48     ` Thomas Monjalon
2015-07-27  8:31       ` Iremonger, Bernard
2015-07-27  9:55         ` Thomas Monjalon
2015-07-27 15:54 ` [dpdk-dev] [PATCH v7 0/4] bonding PCI Port Hotplug Bernard Iremonger
2015-07-27 15:54   ` [dpdk-dev] [PATCH v7 1/4] bonding: add support for " Bernard Iremonger
2015-07-27 17:14     ` Thomas Monjalon
2015-07-27 15:54   ` [dpdk-dev] [PATCH v7 2/4] test-pmd: modified testpmd for link_bonding Bernard Iremonger
2015-07-27 17:15     ` Thomas Monjalon
2015-07-27 15:54   ` [dpdk-dev] [PATCH v7 3/4] bonding: free queue memory in close function Bernard Iremonger
2015-07-27 15:54   ` [dpdk-dev] [PATCH v7 4/4] testpmd_app_ug: add example of re-attaching bonded port Bernard Iremonger
2015-07-27 17:38   ` [dpdk-dev] [PATCH v7 0/4] bonding PCI Port Hotplug Thomas Monjalon
2015-08-04 15:26 ` [dpdk-dev] [PATCH 1/1] bonding: fix error handling in rte_eth_bond_create() Bernard Iremonger
2015-08-04 15:52   ` Thomas Monjalon
2015-08-05 12:28     ` Iremonger, Bernard
2015-08-05 12:36 ` [dpdk-dev] [PATCH v2 " Bernard Iremonger
2015-08-05 12:48   ` Liu, Yong
2015-08-05 13:15   ` Thomas Monjalon
2015-08-05 13:19     ` Iremonger, Bernard
2015-08-05 13:35       ` Thomas Monjalon
2015-08-05 13:39         ` Iremonger, Bernard
2015-08-05 14:04 ` [dpdk-dev] [PATCH v3 1/1] bonding: fix device initialisation error handling Bernard Iremonger
2015-08-06  8:19   ` Jastrzebski, MichalX K
2015-08-10  0:06     ` Thomas Monjalon
2015-09-28 13:03 ` [dpdk-dev] [PATCH 00/20] remove pci driver from vdevs Bernard Iremonger
2015-09-28 13:03   ` [dpdk-dev] [PATCH 01/20] librte_eal: add RTE_KDRV_NONE for vdevs Bernard Iremonger
2015-09-28 13:03   ` [dpdk-dev] [PATCH 02/20] librte_ether: add fields from rte_pci_driver to rte_eth_dev_data Bernard Iremonger
2015-09-29 19:08     ` Neil Horman
2015-09-30  9:56       ` Bruce Richardson
2015-09-30 13:14         ` Neil Horman
2015-09-30 13:21           ` Bruce Richardson
2015-09-30 16:33             ` Iremonger, Bernard
2015-09-30 13:18     ` Neil Horman
2015-09-30 13:23       ` Bruce Richardson
2015-09-28 13:03   ` [dpdk-dev] [PATCH 03/20] librte_ether: add function rte_eth_copy_dev_info() Bernard Iremonger
2015-09-28 13:03   ` [dpdk-dev] [PATCH 04/20] null: remove pci device driver Bernard Iremonger
2015-09-28 13:03   ` [dpdk-dev] [PATCH 05/20] ring: " Bernard Iremonger
2015-09-28 13:03   ` [dpdk-dev] [PATCH 06/20] bonding: " Bernard Iremonger
2015-09-28 13:03   ` [dpdk-dev] [PATCH 07/20] pcap: " Bernard Iremonger
2015-09-28 13:03   ` [dpdk-dev] [PATCH 08/20] af_packet: " Bernard Iremonger
2015-09-28 13:03   ` [dpdk-dev] [PATCH 09/20] xenvirt: " Bernard Iremonger
2015-09-28 13:03   ` [dpdk-dev] [PATCH 10/20] mpipe: " Bernard Iremonger
2015-09-28 13:03   ` [dpdk-dev] [PATCH 11/20] ixgbe: copy pci device info to eth_dev data Bernard Iremonger
2015-09-28 13:03   ` [dpdk-dev] [PATCH 12/20] e1000: " Bernard Iremonger
2015-09-28 13:03   ` [dpdk-dev] [PATCH 13/20] i40e: " Bernard Iremonger
2015-09-28 13:03   ` [dpdk-dev] [PATCH 14/20] fm10k: " Bernard Iremonger
2015-09-28 13:03   ` [dpdk-dev] [PATCH 15/20] bnx2x: " Bernard Iremonger
2015-09-28 19:55     ` Stephen Hemminger
2015-09-29  8:43       ` Iremonger, Bernard
2015-09-28 13:03   ` [dpdk-dev] [PATCH 16/20] cxgbe: " Bernard Iremonger
2015-09-28 18:53     ` Rahul Lakkireddy
2015-09-29  8:41       ` Iremonger, Bernard
2015-09-28 13:03   ` [dpdk-dev] [PATCH 17/20] enic: " Bernard Iremonger
2015-09-28 13:03   ` [dpdk-dev] [PATCH 18/20] mlx4: " Bernard Iremonger
2015-09-28 13:03   ` [dpdk-dev] [PATCH 19/20] virtio: " Bernard Iremonger
2015-09-28 13:03   ` [dpdk-dev] [PATCH 20/20] vmxnet3: " Bernard Iremonger
2015-10-01 15:16 ` [dpdk-dev] [PATCH 0/1] vmxnet3 hotplug support Bernard Iremonger
2015-10-01 15:16   ` [dpdk-dev] [PATCH 1/1] vmxnet3: add PCI Port Hotplug support Bernard Iremonger
2015-10-02  9:08 ` [dpdk-dev] [PATCH 1/2] xenvirt: add support for PCI Port Hotplug Bernard Iremonger
2015-10-02  9:08   ` [dpdk-dev] [PATCH 2/2] xenvirt: free queues in dev_close Bernard Iremonger
2015-10-02  9:09 ` [dpdk-dev] [PATCH] vhost_xen: fix compile error in main.c Bernard Iremonger
2015-10-02  9:20 ` [dpdk-dev] [PATCH 0/2] xenvirt hotplug support Bernard Iremonger
2015-10-12 16:25 ` [dpdk-dev] [PATCH v3 00/20] remove pci driver from vdevs Bernard Iremonger
2015-10-12 16:25   ` [dpdk-dev] [PATCH v3 01/20] librte_eal: add RTE_KDRV_NONE for vdevs Bernard Iremonger
2015-10-12 16:25   ` [dpdk-dev] [PATCH v3 02/20] librte_ether: add fields from rte_pci_driver to rte_eth_dev_data Bernard Iremonger
2015-10-14 16:28     ` Mcnamara, John
2015-10-16 10:34       ` Iremonger, Bernard
2015-10-20  8:57     ` Qiu, Michael
2015-10-20 11:18       ` Iremonger, Bernard
2015-10-20  9:18     ` Qiu, Michael
2015-10-20 10:35       ` Iremonger, Bernard
2015-10-12 16:25   ` [dpdk-dev] [PATCH v3 03/20] librte_ether: add function rte_eth_copy_dev_info() Bernard Iremonger
2015-10-12 16:25   ` [dpdk-dev] [PATCH v3 04/20] null: remove pci device driver Bernard Iremonger
2015-10-12 16:25   ` [dpdk-dev] [PATCH v3 05/20] ring: " Bernard Iremonger
2015-10-12 16:25   ` [dpdk-dev] [PATCH v3 06/20] bonding: " Bernard Iremonger
2015-10-12 16:25   ` [dpdk-dev] [PATCH v3 07/20] pcap: " Bernard Iremonger
2015-10-14 16:31     ` Mcnamara, John
2015-10-12 16:25   ` [dpdk-dev] [PATCH v3 08/20] af_packet: " Bernard Iremonger
2015-10-12 16:25   ` [dpdk-dev] [PATCH v3 09/20] xenvirt: " Bernard Iremonger
2015-10-12 16:25   ` [dpdk-dev] [PATCH v3 10/20] mpipe: " Bernard Iremonger
2015-10-12 16:25   ` [dpdk-dev] [PATCH v3 11/20] ixgbe: copy pci device info to eth_dev data Bernard Iremonger
2015-10-12 16:25   ` [dpdk-dev] [PATCH v3 12/20] e1000: " Bernard Iremonger
2015-10-12 16:25   ` [dpdk-dev] [PATCH v3 13/20] i40e: " Bernard Iremonger
2015-10-12 16:25   ` [dpdk-dev] [PATCH v3 14/20] fm10k: " Bernard Iremonger
2015-10-12 16:25   ` [dpdk-dev] [PATCH v3 15/20] bnx2x: " Bernard Iremonger
2015-10-12 16:25   ` [dpdk-dev] [PATCH v3 16/20] cxgbe: " Bernard Iremonger
2015-10-12 16:25   ` [dpdk-dev] [PATCH v3 17/20] enic: " Bernard Iremonger
2015-10-12 16:25   ` [dpdk-dev] [PATCH v3 18/20] mlx4: " Bernard Iremonger
2015-10-12 16:25   ` [dpdk-dev] [PATCH v3 19/20] virtio: " Bernard Iremonger
2015-10-12 16:25   ` [dpdk-dev] [PATCH v3 20/20] vmxnet3: " Bernard Iremonger
2015-10-20 15:37 ` [dpdk-dev] [PATCH 1/2] virtio: fixed segmentation fault in queue_release Bernard Iremonger
2015-10-20 15:37   ` [dpdk-dev] [PATCH 2/2] rel_notes: update for fix for virtio segmentation fault Bernard Iremonger
2015-10-20 18:44   ` [dpdk-dev] [PATCH 1/2] virtio: fixed segmentation fault in queue_release Stephen Hemminger
2015-10-20 21:32     ` Thomas Monjalon
2015-11-06 16:30 ` [dpdk-dev] [PATCH 1/1] librte_ether: fix coverity errors in rte_eth_copy_pci_info Bernard Iremonger
2015-11-06 16:39   ` Thomas Monjalon
2015-11-06 16:54     ` Iremonger, Bernard
2015-11-06 17:20 ` [dpdk-dev] [v2 0/1] librte_ether: fix coverity errors Bernard Iremonger
2015-11-06 17:20   ` [dpdk-dev] [v2 1/1] librte_ether: fix coverity errors in rte_eth_copy_pci_info Bernard Iremonger
2015-11-10 15:40     ` Thomas Monjalon
2015-11-23 15:20 ` [dpdk-dev] [PATCH 1/1] app/test: create ring and ethdevs in pmd_ring_autotest Bernard Iremonger
2015-11-24 16:14   ` Bruce Richardson [this message]
2015-11-24 16:29     ` Iremonger, Bernard
2015-11-24 16:30       ` Richardson, Bruce
2015-11-24 17:33 ` [dpdk-dev] [PATCH v2 0/2] ring pmd autotest Bernard Iremonger
2015-11-24 17:33   ` [dpdk-dev] [PATCH v2 1/2] app/test: create ring and ethdevs in pmd_ring_autotest Bernard Iremonger
2015-11-24 17:33   ` [dpdk-dev] [PATCH v2 2/2] doc: revise ring-based PMD to match latest ring PMD code Bernard Iremonger
2015-11-27 16:07 ` [dpdk-dev] [PATCH v3 0/2] ring pmd autotest Bernard Iremonger
2015-11-27 16:07   ` [dpdk-dev] [PATCH v3 1/2] app/test: fix failures in the ring_pmd_autotest program Bernard Iremonger
2015-11-27 16:14     ` Bruce Richardson
2015-11-27 16:40       ` Iremonger, Bernard
2015-11-27 18:20         ` Thomas Monjalon
2015-11-27 16:07   ` [dpdk-dev] [PATCH v3 2/2] doc: correct Rings-based PMD section in the NIC Drivers guides Bernard Iremonger
2015-11-27 16:17     ` Bruce Richardson
2015-11-28 11:01       ` Iremonger, Bernard
2015-11-28 11:01   ` [dpdk-dev] [PATCH v4 0/2] ring pmd autotest Bernard Iremonger
2015-11-28 11:01     ` [dpdk-dev] [PATCH v4 1/2] app/test: fix failures in the ring_pmd_autotest program Bernard Iremonger
2015-11-28 11:01     ` [dpdk-dev] [PATCH v4 2/2] doc: correct Rings-based PMD section in the NIC Drivers guides Bernard Iremonger
2015-12-01 11:24       ` Mcnamara, John
2015-12-07  2:55     ` [dpdk-dev] [PATCH v4 0/2] ring pmd autotest Thomas Monjalon
2015-12-04 14:05 ` [dpdk-dev] [PATCH] bonding: use eth_dev link state interrupt flag Bernard Iremonger
2015-12-04 16:45   ` Declan Doherty
2015-12-06 23:12     ` Thomas Monjalon
2015-12-04 15:14 ` [dpdk-dev] [PATCH 1/1] virtio: call rte_eth_copy_pci_info() later Bernard Iremonger
2015-12-06 22:37   ` Thomas Monjalon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151124161417.GA21112@bricha3-MOBL3 \
    --to=bruce.richardson@intel.com \
    --cc=bernard.iremonger@intel.com \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).