Add thunderx (LP: #1691659)
[deb_dpdk.git] / debian / patches / nicvf-0002-net-thunderx-fix-32-bit-build.patch
1 From 6d76fde7dba39769c64bee03b62593cc66a1b0e3 Mon Sep 17 00:00:00 2001
2 From: Jerin Jacob <jerin.jacob@caviumnetworks.com>
3 Date: Sun, 19 Mar 2017 20:18:46 +0530
4 Subject: [PATCH] net/thunderx: fix 32-bit build
5
6 Fixes: e438796617dc ("net/thunderx: add PMD skeleton")
7
8 Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
9 ---
10  drivers/net/thunderx/nicvf_struct.h | 12 ++++++------
11  1 file changed, 6 insertions(+), 6 deletions(-)
12
13 Origin: http://dpdk.org/browse/dpdk/commit/?id=6d76fde7dba39769c64bee03b62593cc66a1b0e3
14 Original-Author: Jerin Jacob <jerin.jacob@caviumnetworks.com>
15 Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/dpdk/+bug/1691659
16 Author: Christian Ehrhardt <christian.ehrhardt@canonical.com>
17 Last-Update: 2017-05-18
18
19 diff --git a/drivers/net/thunderx/nicvf_struct.h b/drivers/net/thunderx/nicvf_struct.h
20 index c900e12..5bc6d57 100644
21 --- a/drivers/net/thunderx/nicvf_struct.h
22 +++ b/drivers/net/thunderx/nicvf_struct.h
23 @@ -43,8 +43,8 @@
24  #include <rte_memory.h>
25  
26  struct nicvf_rbdr {
27 -       uint64_t rbdr_status;
28 -       uint64_t rbdr_door;
29 +       uintptr_t rbdr_status;
30 +       uintptr_t rbdr_door;
31         struct rbdr_entry_t *desc;
32         nicvf_phys_addr_t phys;
33         uint32_t buffsz;
34 @@ -58,8 +58,8 @@ struct nicvf_txq {
35         union sq_entry_t *desc;
36         nicvf_phys_addr_t phys;
37         struct rte_mbuf **txbuffs;
38 -       uint64_t sq_head;
39 -       uint64_t sq_door;
40 +       uintptr_t sq_head;
41 +       uintptr_t sq_door;
42         struct rte_mempool *pool;
43         struct nicvf *nic;
44         void (*pool_free)(struct nicvf_txq *sq);
45 @@ -74,8 +74,8 @@ struct nicvf_txq {
46  
47  struct nicvf_rxq {
48         uint64_t mbuf_phys_off;
49 -       uint64_t cq_status;
50 -       uint64_t cq_door;
51 +       uintptr_t cq_status;
52 +       uintptr_t cq_door;
53         nicvf_phys_addr_t phys;
54         union cq_entry_t *desc;
55         struct nicvf_rbdr *shared_rbdr;
56 -- 
57 2.7.4
58