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:
457ea93
)
app/testpmd: remove unnecessary cast
author
Zhiyong Yang
<zhiyong.yang@intel.com>
Wed, 11 Oct 2017 06:59:50 +0000
(14:59 +0800)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Thu, 12 Oct 2017 00:52:50 +0000
(
01:52
+0100)
Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test-pmd/testpmd.c
patch
|
blob
|
history
diff --git
a/app/test-pmd/testpmd.c
b/app/test-pmd/testpmd.c
index
6d72563
..
f6398a0
100644
(file)
--- a/
app/test-pmd/testpmd.c
+++ b/
app/test-pmd/testpmd.c
@@
-1364,14
+1364,14
@@
stop_packet_forwarding(void)
void
dev_set_link_up(portid_t pid)
{
- if (rte_eth_dev_set_link_up(
(uint8_t)
pid) < 0)
+ if (rte_eth_dev_set_link_up(pid) < 0)
printf("\nSet link up fail.\n");
}
void
dev_set_link_down(portid_t pid)
{
- if (rte_eth_dev_set_link_down(
(uint8_t)
pid) < 0)
+ if (rte_eth_dev_set_link_down(pid) < 0)
printf("\nSet link down fail.\n");
}