summaryrefslogtreecommitdiff
path: root/examples/l2fwd-keepalive
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/l2fwd-keepalive
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/l2fwd-keepalive')
-rw-r--r--examples/l2fwd-keepalive/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/l2fwd-keepalive/main.c b/examples/l2fwd-keepalive/main.c
index 94b8677..8da89aa 100644
--- a/examples/l2fwd-keepalive/main.c
+++ b/examples/l2fwd-keepalive/main.c
@@ -499,7 +499,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;
}