DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH 1/3] config: change dpaa2 mbuf headroom size to 128
@ 2018-01-30 15:06 Shreyansh Jain
  2018-01-30 15:06 ` [dpdk-dev] [PATCH 2/3] net/dpaa2: fix the bpid offset Shreyansh Jain
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Shreyansh Jain @ 2018-01-30 15:06 UTC (permalink / raw)
  To: dev; +Cc: thomas, hemant.agrawal

From: Hemant Agrawal <hemant.agrawal@nxp.com>

Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
---
 config/defconfig_arm64-dpaa2-linuxapp-gcc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config/defconfig_arm64-dpaa2-linuxapp-gcc b/config/defconfig_arm64-dpaa2-linuxapp-gcc
index 5d4437ca5..aa135caab 100644
--- a/config/defconfig_arm64-dpaa2-linuxapp-gcc
+++ b/config/defconfig_arm64-dpaa2-linuxapp-gcc
@@ -16,7 +16,7 @@ CONFIG_RTE_MAX_LCORE=16
 CONFIG_RTE_MAX_NUMA_NODES=1
 CONFIG_RTE_CACHE_LINE_SIZE=64
 
-CONFIG_RTE_PKTMBUF_HEADROOM=256
+CONFIG_RTE_PKTMBUF_HEADROOM=128
 
 # Doesn't support NUMA
 CONFIG_RTE_EAL_NUMA_AWARE_HUGEPAGES=n
-- 
2.14.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [dpdk-dev] [PATCH 2/3] net/dpaa2: fix the bpid offset
  2018-01-30 15:06 [dpdk-dev] [PATCH 1/3] config: change dpaa2 mbuf headroom size to 128 Shreyansh Jain
@ 2018-01-30 15:06 ` Shreyansh Jain
  2018-01-30 15:06 ` [dpdk-dev] [PATCH 3/3] bus/fslmc: fix incorrect string compare length Shreyansh Jain
  2018-01-31  0:37 ` [dpdk-dev] [PATCH 1/3] config: change dpaa2 mbuf headroom size to 128 Thomas Monjalon
  2 siblings, 0 replies; 4+ messages in thread
From: Shreyansh Jain @ 2018-01-30 15:06 UTC (permalink / raw)
  To: dev; +Cc: thomas, hemant.agrawal

From: Hemant Agrawal <hemant.agrawal@nxp.com>

Fixes: 774e9ea91992 ("net/dpaa2: add support for multi seg buffers")
Cc: hemant.agrawal@nxp.com
Fixes: d2ef05d5c13e ("net/dpaa2: optimize Rx/Tx path")
Cc: hemant.agrawal@nxp.com

Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
---
 drivers/net/dpaa2/dpaa2_rxtx.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/net/dpaa2/dpaa2_rxtx.c b/drivers/net/dpaa2/dpaa2_rxtx.c
index 3d4566988..898cf3bd6 100644
--- a/drivers/net/dpaa2/dpaa2_rxtx.c
+++ b/drivers/net/dpaa2/dpaa2_rxtx.c
@@ -334,8 +334,8 @@ eth_mbuf_to_sg_fd(struct rte_mbuf *mbuf,
 
 	DPAA2_SET_FD_ADDR(fd, DPAA2_MBUF_VADDR_TO_IOVA(temp));
 	DPAA2_SET_FD_LEN(fd, mbuf->pkt_len);
+	DPAA2_SET_ONLY_FD_BPID(fd, bpid);
 	DPAA2_SET_FD_OFFSET(fd, temp->data_off);
-	DPAA2_SET_FD_BPID(fd, bpid);
 	DPAA2_SET_FD_ASAL(fd, DPAA2_ASAL_VAL);
 	DPAA2_FD_SET_FORMAT(fd, qbman_fd_sg);
 	/*Set Scatter gather table and Scatter gather entries*/
@@ -776,7 +776,6 @@ dpaa2_dev_tx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)
 				(*bufs)->seqn = DPAA2_INVALID_MBUF_SEQN;
 			}
 
-			fd_arr[loop].simple.bpid_offset = 0;
 			fd_arr[loop].simple.frc = 0;
 			DPAA2_RESET_FD_CTRL((&fd_arr[loop]));
 			DPAA2_SET_FD_FLC((&fd_arr[loop]), NULL);
-- 
2.14.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [dpdk-dev] [PATCH 3/3] bus/fslmc: fix incorrect string compare length
  2018-01-30 15:06 [dpdk-dev] [PATCH 1/3] config: change dpaa2 mbuf headroom size to 128 Shreyansh Jain
  2018-01-30 15:06 ` [dpdk-dev] [PATCH 2/3] net/dpaa2: fix the bpid offset Shreyansh Jain
@ 2018-01-30 15:06 ` Shreyansh Jain
  2018-01-31  0:37 ` [dpdk-dev] [PATCH 1/3] config: change dpaa2 mbuf headroom size to 128 Thomas Monjalon
  2 siblings, 0 replies; 4+ messages in thread
From: Shreyansh Jain @ 2018-01-30 15:06 UTC (permalink / raw)
  To: dev; +Cc: thomas, hemant.agrawal, Shreyansh Jain

Fixes: 828d51d8fc3e ("bus/fslmc: refactor scan and probe functions")
Cc: shreyansh.jain@nxp.com

Incorrect string length was being compared while scanning DPCI object.

Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
---
 drivers/bus/fslmc/fslmc_bus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/bus/fslmc/fslmc_bus.c b/drivers/bus/fslmc/fslmc_bus.c
index e9acd3588..5ee0beb85 100644
--- a/drivers/bus/fslmc/fslmc_bus.c
+++ b/drivers/bus/fslmc/fslmc_bus.c
@@ -141,7 +141,7 @@ scan_one_fslmc_device(char *dev_name)
 		dev->dev_type = DPAA2_BPOOL;
 	else if (!strncmp("dpio", t_ptr, 4))
 		dev->dev_type = DPAA2_IO;
-	else if (!strncmp("dpci", t_ptr, 5))
+	else if (!strncmp("dpci", t_ptr, 4))
 		dev->dev_type = DPAA2_CI;
 	else if (!strncmp("dpmcp", t_ptr, 5))
 		dev->dev_type = DPAA2_MPORTAL;
-- 
2.14.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] [PATCH 1/3] config: change dpaa2 mbuf headroom size to 128
  2018-01-30 15:06 [dpdk-dev] [PATCH 1/3] config: change dpaa2 mbuf headroom size to 128 Shreyansh Jain
  2018-01-30 15:06 ` [dpdk-dev] [PATCH 2/3] net/dpaa2: fix the bpid offset Shreyansh Jain
  2018-01-30 15:06 ` [dpdk-dev] [PATCH 3/3] bus/fslmc: fix incorrect string compare length Shreyansh Jain
@ 2018-01-31  0:37 ` Thomas Monjalon
  2 siblings, 0 replies; 4+ messages in thread
From: Thomas Monjalon @ 2018-01-31  0:37 UTC (permalink / raw)
  To: Shreyansh Jain, hemant.agrawal; +Cc: dev

30/01/2018 16:06, Shreyansh Jain:
> From: Hemant Agrawal <hemant.agrawal@nxp.com>
> 
> Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>

Series applied, thanks

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-01-31  0:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-30 15:06 [dpdk-dev] [PATCH 1/3] config: change dpaa2 mbuf headroom size to 128 Shreyansh Jain
2018-01-30 15:06 ` [dpdk-dev] [PATCH 2/3] net/dpaa2: fix the bpid offset Shreyansh Jain
2018-01-30 15:06 ` [dpdk-dev] [PATCH 3/3] bus/fslmc: fix incorrect string compare length Shreyansh Jain
2018-01-31  0:37 ` [dpdk-dev] [PATCH 1/3] config: change dpaa2 mbuf headroom size to 128 Thomas Monjalon

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).