[dpdk-dev] [PATCH 3/3] examples/l3fwd-power: use device max burst size

2017-12-12 Thread Nikhil Agarwal
On some of the hardware e.g. DPAA, rx burst can only return upto 16 packets, which causes the application to assume that no more packets are present. This patch modifies the application to use device published packet burst size. Signed-off-by: Nikhil Agarwal --- examples/l3fwd-power/main.c

[dpdk-dev] [PATCH 1/3] ethdev: add max burst size to device info

2017-12-12 Thread Nikhil Agarwal
the lowest available max_burst_size value for rte_eth_rx_burst. Signed-off-by: Nikhil Agarwal --- lib/librte_ether/rte_ethdev.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h index 341c2d6..3ab6f02 100644 --- a/lib/librte_ether/rt

[dpdk-dev] [PATCH 2/3] net/dpaa: implement max burst size in dev info

2017-12-12 Thread Nikhil Agarwal
Signed-off-by: Nikhil Agarwal --- drivers/net/dpaa/dpaa_ethdev.c | 1 + drivers/net/dpaa/dpaa_ethdev.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c index cf5a2ec..79c6cc4 100644 --- a/drivers/net/dpaa/dpaa_ethdev.c +++ b

[dpdk-dev] [PATCH 2/4] examples/l3fwd-power: fix the timer for any platform freq

2017-12-12 Thread Nikhil Agarwal
The code assumes that the platform frequency is 2GHz. This patch add support for dynamically detecting platform frequence. Fixes: d7937e2e3d12 ("power: initial import") Cc: sta...@dpdk.org Signed-off-by: Nikhil Agarwal --- examples/l3fwd-power/main.c | 8 1 file changed, 4

[dpdk-dev] [PATCH 1/4] examples/l3fwd-power: fix non Rx intr supported platform

2017-12-12 Thread Nikhil Agarwal
l3fwd-power: enable one-shot Rx interrupt and polling switch") Cc: sta...@dpdk.org Cc: Danny Zhou Cc: Cunming Liang Signed-off-by: Nikhil Agarwal --- examples/l3fwd-power/main.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/l3fwd-power/main.c b/examples/l

[dpdk-dev] [PATCH 4/4] examples/l3fwd-power: disable Lsc interrupts

2017-12-12 Thread Nikhil Agarwal
This application does not need Link Status Interrupt. It will cause failure for the platforms not supporting LSC. Signed-off-by: Nikhil Agarwal --- examples/l3fwd-power/main.c | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c index

[dpdk-dev] [PATCH 3/4] examples/l3fwd-power: replace desc done with Rx queue count

2017-12-12 Thread Nikhil Agarwal
HW queue based platforms may not support descriptor done API. This patch changes the usages to rx_queue_count API, which is more generic. Signed-off-by: Nikhil Agarwal --- examples/l3fwd-power/main.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/examples/l3fwd