[dpdk-dev] [RFC 02/21] net/pcap: use macros for param string

Ferruh Yigit ferruh.yigit at intel.com
Thu Jul 21 19:22:41 CEST 2016


Signed-off-by: Ferruh Yigit <ferruh.yigit at intel.com>
---
 drivers/net/pcap/rte_eth_pcap.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/net/pcap/rte_eth_pcap.c b/drivers/net/pcap/rte_eth_pcap.c
index 6343c0e..877e4c2 100644
--- a/drivers/net/pcap/rte_eth_pcap.c
+++ b/drivers/net/pcap/rte_eth_pcap.c
@@ -1091,8 +1091,8 @@ static struct rte_driver pmd_pcap_drv = {
 
 PMD_REGISTER_DRIVER(pmd_pcap_drv, eth_pcap);
 DRIVER_REGISTER_PARAM_STRING(eth_pcap,
-	"rx_pcap=<string> "
-	"tx_pcap=<string> "
-	"rx_iface=<ifc> "
-	"tx_iface=<ifc> "
-	"iface=<ifc>");
+	ETH_PCAP_RX_PCAP_ARG"=<string> "
+	ETH_PCAP_TX_PCAP_ARG"=<string> "
+	ETH_PCAP_RX_IFACE_ARG"=<ifc> "
+	ETH_PCAP_TX_IFACE_ARG"=<ifc> "
+	ETH_PCAP_IFACE_ARG"=<ifc>");
-- 
2.7.4



More information about the dev mailing list