diff options
author | Deepak S <deepak.s@linux.intel.com> | 2017-07-20 11:22:20 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-07-20 11:22:20 +0000 |
commit | 51759157a499326cfe69ec0eecb00b1c5879bf50 (patch) | |
tree | bb2197d5344b52ec015323a4fd5e36d6ec6937e4 /common/VIL/l2l3_stack/interface.c | |
parent | cfe2f779d4365dba03659b64668cb301fae53c95 (diff) | |
parent | 0e51437be874b6831e95639f4c1ad6b0133c2a28 (diff) |
Merge "[l2l3 stack] implements new arp state machine & arp buffering"
Diffstat (limited to 'common/VIL/l2l3_stack/interface.c')
-rw-r--r-- | common/VIL/l2l3_stack/interface.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/VIL/l2l3_stack/interface.c b/common/VIL/l2l3_stack/interface.c index bd4c4e92..627423b4 100644 --- a/common/VIL/l2l3_stack/interface.c +++ b/common/VIL/l2l3_stack/interface.c @@ -453,6 +453,7 @@ void ifm_update_linkstatus(uint8_t port_id, uint16_t linkstatus) rte_eth_link_get(port_id, &link); if (linkstatus == IFM_ETH_LINK_UP) { port->admin_status = IFM_ETH_LINK_UP; + port->link_status = IFM_ETH_LINK_UP; if(!link.link_status) { if (rte_eth_dev_set_link_up(port_id) < 0) { RTE_LOG(INFO, IFM, @@ -481,6 +482,7 @@ void ifm_update_linkstatus(uint8_t port_id, uint16_t linkstatus) { int status; port->admin_status = IFM_ETH_LINK_DOWN; + port->link_status = IFM_ETH_LINK_DOWN; /* need to check the following if */ if(link.link_status) { status = rte_eth_dev_set_link_down(port_id); |