common: arp_route_tbl entry is not working 25/44325/1
authorAnand B Jyoti <anand.b.jyoti@intel.com>
Mon, 2 Oct 2017 22:30:33 +0000 (04:00 +0530)
committerDeepak S <deepak.s@linux.intel.com>
Wed, 4 Oct 2017 21:32:43 +0000 (14:32 -0700)
JIRA: SAMPLEVNF-80

The arp_route_tbl entry was not getting effected as the vnf_gateway
flag was not set after adding entry to routing table.

This patch fixes the issue.

Change-Id: Id3b1b14b698dea5e2beea7f3e90e8622896b5c5f
Signed-off-by: Anand B Jyoti <anand.b.jyoti@intel.com>
common/VIL/l2l3_stack/lib_arp.c

index b8976d3..85cc3ac 100644 (file)
@@ -2302,6 +2302,7 @@ static int arp_parse_args(struct pipeline_params *params)
                                lentry->nh = nh_ip;
                                lentry->nh_mask = nh_ip & mask;
                                p_route_data[tx_port]->route_ent_cnt++;
+                               vnf_gateway = 1;
                                token = strtok(NULL, "(");
                        }
 
@@ -2366,6 +2367,7 @@ static int arp_parse_args(struct pipeline_params *params)
                                lentry->port = tx_port;
 
                                p_nd_route_data[tx_port]->nd_route_ent_cnt++;
+                               vnf_gateway = 1;
 
                                token = strtok(NULL, "(");
                        }