summaryrefslogtreecommitdiffstats
path: root/common/VIL/l2l3_stack/interface.c
diff options
context:
space:
mode:
authorVishwesh M Rudramuni <vishwesh.m.rudramuni@intel.com>2017-06-06 04:11:25 +0530
committerVishwesh M Rudramuni <vishwesh.m.rudramuni@intel.com>2017-07-14 06:08:28 +0530
commit0e51437be874b6831e95639f4c1ad6b0133c2a28 (patch)
tree20be5dcfe1a25b1c3f67e3845032e7796a29ac2d /common/VIL/l2l3_stack/interface.c
parent82416b375a275837689cddfd1782d82996fecaca (diff)
[l2l3 stack] implements new arp state machine & arp buffering
JIRA: SAMPLEVNF-23 This patch implements ~New arp state machine implementing new states like INCOMPLETE, COMPLETE, PROBE, STALE. ~removing unwanted code in arpicmp pipeline ~Implementing arp buffering, when arp is unresolved. ~Integratig the new changes with vCGNAPT ~Integrating the new changes with vACL ~Integrating the new changes with vFW. Change-Id: If467ec035bc8de58463ea50d9e603a97f168c1a2 Signed-off-by: Vishwesh M Rudramuni <vishwesh.m.rudramuni@intel.com>
Diffstat (limited to 'common/VIL/l2l3_stack/interface.c')
-rw-r--r--common/VIL/l2l3_stack/interface.c2
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);