Skip to contentSkip to conversation

crypto/qat: make PCI device id struct const

PATCH Applied Ferruh Yigit 3 participants 3 messages Jan 26, 2017 – Jan 27, 2017 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto/qat: make PCI device id struct const

---
 drivers/crypto/qat/rte_qat_cryptodev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/qat/rte_qat_cryptodev.c +1 -1
index 9594067..a492dc0 100644
@@ -67,7 +67,7 @@ static struct rte_cryptodev_ops crypto_qat_ops = {
  * The set of PCI devices this driver supports
  */
 
-static struct rte_pci_id pci_id_qat_map[] = {
+static const struct rte_pci_id pci_id_qat_map[] = {
 		{
 			RTE_PCI_DEVICE(0x8086, 0x0443),
 		},
Signature · 1 line
2.9.3
Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · Ferruh Yigit
---
 drivers/crypto/qat/rte_qat_cryptodev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/qat/rte_qat_cryptodev.c +0 -0
index 9594067..a492dc0 100644

drivers/crypto/qat/rte_qat_cryptodev.c static struct rte_cryptodev_ops crypto_qat_ops = { · line 73

Quoted 8 lines
drivers/crypto/qat/rte_qat_cryptodev.c +1 -1
@@ -67,7 +67,7 @@ static struct rte_cryptodev_ops crypto_qat_ops = {
  * The set of PCI devices this driver supports
  */
 
-static struct rte_pci_id pci_id_qat_map[] = {
+static const struct rte_pci_id pci_id_qat_map[] = {
 		{
 			RTE_PCI_DEVICE(0x8086, 0x0443),
 		},
#2 lore raw
Quoted 24 lines

-----Original Message-----
From: Shreyansh Jain [mailto:[email protected]]
Sent: Friday, January 27, 2017 7:11 AM
To: Yigit, Ferruh
Cc: [email protected]; Thomas Monjalon; De Lara Guarch, Pablo
Subject: Re: [PATCH] crypto/qat: make PCI device id struct const

Review

Quoted 6 lines · Ferruh Yigit
---
 drivers/crypto/qat/rte_qat_cryptodev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

b/drivers/crypto/qat/rte_qat_cryptodev.c

Quoted 7 lines

index 9594067..a492dc0 100644

drivers/crypto/qat/rte_qat_cryptodev.c +0 -0
@@ -67,7 +67,7 @@ static struct rte_cryptodev_ops crypto_qat_ops = {
  * The set of PCI devices this driver supports
  */
 
Quoted 8 lines

drivers/crypto/qat/rte_qat_cryptodev.c static struct rte_cryptodev_ops crypto_qat_ops = { · line 73

Quoted 6 lines
drivers/crypto/qat/rte_qat_cryptodev.c +1 -1
-static struct rte_pci_id pci_id_qat_map[] = {
+static const struct rte_pci_id pci_id_qat_map[] = {
 		{
 			RTE_PCI_DEVICE(0x8086, 0x0443),
 		},

Applied to dpdk-next-crypto.
Thanks,

Pablo