summaryrefslogtreecommitdiff
path: root/examples/l3fwd-acl
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/l3fwd-acl
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/l3fwd-acl')
-rw-r--r--examples/l3fwd-acl/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/l3fwd-acl/main.c b/examples/l3fwd-acl/main.c
index 3a895b7..621872f 100644
--- a/examples/l3fwd-acl/main.c
+++ b/examples/l3fwd-acl/main.c
@@ -1858,7 +1858,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;
}