aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches/nicvf-0002-net-thunderx-fix-32-bit-build.patch
diff options
context:
space:
mode:
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>2017-05-18 13:12:50 +0200
committerChristian Ehrhardt <christian.ehrhardt@canonical.com>2017-05-19 12:28:51 +0200
commite4562c78c0c5cb1a4080765925209fd23b8bc389 (patch)
treec96b8aa19b3cb29b2cf9834f15d95fcfef34264a /debian/patches/nicvf-0002-net-thunderx-fix-32-bit-build.patch
parent49290e33ba32abb8d61afa46a320ebaff14be321 (diff)
Add thunderx (LP: #1691659)
To make arm support useful on more devices add, enable and fix thunderx networking - that is the nicvf pmd (LP: #1691659) Change-Id: I17f1d6d63d31df05f1af09054ffddcb478c54dd3 Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Diffstat (limited to 'debian/patches/nicvf-0002-net-thunderx-fix-32-bit-build.patch')
-rw-r--r--debian/patches/nicvf-0002-net-thunderx-fix-32-bit-build.patch58
1 files changed, 58 insertions, 0 deletions
diff --git a/debian/patches/nicvf-0002-net-thunderx-fix-32-bit-build.patch b/debian/patches/nicvf-0002-net-thunderx-fix-32-bit-build.patch
new file mode 100644
index 00000000..f5653d1e
--- /dev/null
+++ b/debian/patches/nicvf-0002-net-thunderx-fix-32-bit-build.patch
@@ -0,0 +1,58 @@
+From 6d76fde7dba39769c64bee03b62593cc66a1b0e3 Mon Sep 17 00:00:00 2001
+From: Jerin Jacob <jerin.jacob@caviumnetworks.com>
+Date: Sun, 19 Mar 2017 20:18:46 +0530
+Subject: [PATCH] net/thunderx: fix 32-bit build
+
+Fixes: e438796617dc ("net/thunderx: add PMD skeleton")
+
+Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
+---
+ drivers/net/thunderx/nicvf_struct.h | 12 ++++++------
+ 1 file changed, 6 insertions(+), 6 deletions(-)
+
+Origin: http://dpdk.org/browse/dpdk/commit/?id=6d76fde7dba39769c64bee03b62593cc66a1b0e3
+Original-Author: Jerin Jacob <jerin.jacob@caviumnetworks.com>
+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/dpdk/+bug/1691659
+Author: Christian Ehrhardt <christian.ehrhardt@canonical.com>
+Last-Update: 2017-05-18
+
+diff --git a/drivers/net/thunderx/nicvf_struct.h b/drivers/net/thunderx/nicvf_struct.h
+index c900e12..5bc6d57 100644
+--- a/drivers/net/thunderx/nicvf_struct.h
++++ b/drivers/net/thunderx/nicvf_struct.h
+@@ -43,8 +43,8 @@
+ #include <rte_memory.h>
+
+ struct nicvf_rbdr {
+- uint64_t rbdr_status;
+- uint64_t rbdr_door;
++ uintptr_t rbdr_status;
++ uintptr_t rbdr_door;
+ struct rbdr_entry_t *desc;
+ nicvf_phys_addr_t phys;
+ uint32_t buffsz;
+@@ -58,8 +58,8 @@ struct nicvf_txq {
+ union sq_entry_t *desc;
+ nicvf_phys_addr_t phys;
+ struct rte_mbuf **txbuffs;
+- uint64_t sq_head;
+- uint64_t sq_door;
++ uintptr_t sq_head;
++ uintptr_t sq_door;
+ struct rte_mempool *pool;
+ struct nicvf *nic;
+ void (*pool_free)(struct nicvf_txq *sq);
+@@ -74,8 +74,8 @@ struct nicvf_txq {
+
+ struct nicvf_rxq {
+ uint64_t mbuf_phys_off;
+- uint64_t cq_status;
+- uint64_t cq_door;
++ uintptr_t cq_status;
++ uintptr_t cq_door;
+ nicvf_phys_addr_t phys;
+ union cq_entry_t *desc;
+ struct nicvf_rbdr *shared_rbdr;
+--
+2.7.4
+