summaryrefslogtreecommitdiff
path: root/examples/multi_process/client_server_mp
diff options
context:
space:
mode:
authorThomas Monjalon <thomas.monjalon@6wind.com>2016-04-01 00:12:24 +0200
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-04-01 21:38:34 +0200
commit09419f235e099ecb265a590778fe64a685a2a241 (patch)
treee1c2e2f9da95991613170fb088f4491427735338 /examples/multi_process/client_server_mp
parentf9bd3342114a9db436f71b12ac424aff224482cb (diff)
downloaddpdk-09419f235e099ecb265a590778fe64a685a2a241.zip
dpdk-09419f235e099ecb265a590778fe64a685a2a241.tar.gz
dpdk-09419f235e099ecb265a590778fe64a685a2a241.tar.xz
ethdev: use constants for link state
Define and use ETH_LINK_UP and ETH_LINK_DOWN where appropriate. Signed-off-by: Marc Sune <marcdevel@gmail.com> Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Diffstat (limited to 'examples/multi_process/client_server_mp')
-rw-r--r--examples/multi_process/client_server_mp/mp_server/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/multi_process/client_server_mp/mp_server/init.c b/examples/multi_process/client_server_mp/mp_server/init.c
index 1078ffd..ecb61c6 100644
--- a/examples/multi_process/client_server_mp/mp_server/init.c
+++ b/examples/multi_process/client_server_mp/mp_server/init.c
@@ -226,7 +226,7 @@ check_all_ports_link_status(uint8_t port_num, uint32_t port_mask)
continue;
}
/* clear all_ports_up flag if any link down */
- if (link.link_status == 0) {
+ if (link.link_status == ETH_LINK_DOWN) {
all_ports_up = 0;
break;
}