git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
370621b
)
app/test: make PCI device id struct const
author
Ferruh Yigit
<ferruh.yigit@intel.com>
Fri, 27 Jan 2017 09:53:03 +0000
(09:53 +0000)
committer
Thomas Monjalon
<thomas.monjalon@6wind.com>
Mon, 30 Jan 2017 16:07:00 +0000
(17:07 +0100)
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test/test_pci.c
patch
|
blob
|
history
diff --git
a/app/test/test_pci.c
b/app/test/test_pci.c
index
cda186d
..
7985376
100644
(file)
--- a/
app/test/test_pci.c
+++ b/
app/test/test_pci.c
@@
-66,12
+66,12
@@
static int my_driver_init(struct rte_pci_driver *dr,
struct rte_pci_device *dev);
/* IXGBE NICS */
-struct rte_pci_id my_driver_id[] = {
+
const
struct rte_pci_id my_driver_id[] = {
{RTE_PCI_DEVICE(0x0001, 0x1234)},
{ .vendor_id = 0, /* sentinel */ },
};
-struct rte_pci_id my_driver_id2[] = {
+
const
struct rte_pci_id my_driver_id2[] = {
{RTE_PCI_DEVICE(0x0001, 0x4444)},
{RTE_PCI_DEVICE(0x0002, 0xabcd)},
{ .vendor_id = 0, /* sentinel */ },