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:
721c662
)
net/pcap: fix the NUMA id display in logs
author
Vipin Varghese
<vipin.varghese@intel.com>
Fri, 22 Dec 2017 04:38:20 +0000
(10:08 +0530)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000
(18:47 +0100)
On single NUMA device the log information shows as boundary value
instead of -1. The change brings in unsigned to signed.
Fixes:
4c173302c307
("pcap: add new driver")
Signed-off-by: Vipin Varghese <vipin.varghese@intel.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/pcap/rte_eth_pcap.c
patch
|
blob
|
history
diff --git
a/drivers/net/pcap/rte_eth_pcap.c
b/drivers/net/pcap/rte_eth_pcap.c
index
3efb451
..
3385d04
100644
(file)
--- a/
drivers/net/pcap/rte_eth_pcap.c
+++ b/
drivers/net/pcap/rte_eth_pcap.c
@@
-806,7
+806,7
@@
pmd_init_internals(struct rte_vdev_device *vdev,
const char *name;
name = rte_vdev_device_name(vdev);
- RTE_LOG(INFO, PMD, "Creating pcap-backed ethdev on numa socket %
u
\n",
+ RTE_LOG(INFO, PMD, "Creating pcap-backed ethdev on numa socket %
d
\n",
numa_node);
/* now do all data allocation - for eth_dev structure
@@
-1036,7
+1036,7
@@
pmd_pcap_remove(struct rte_vdev_device *dev)
{
struct rte_eth_dev *eth_dev = NULL;
- RTE_LOG(INFO, PMD, "Closing pcap ethdev on numa socket %
u
\n",
+ RTE_LOG(INFO, PMD, "Closing pcap ethdev on numa socket %
d
\n",
rte_socket_id());
if (!dev)