/* Gateway Proc Starts */
struct arp_entry_data *ret_arp_data = NULL;
- uint32_t src_phy_port = *src_port;
-
- dest_if = prv_to_pub_map[src_phy_port];
+ uint32_t src_phy_port = pkts[pkt_index]->port;
+ dest_if = prv_to_pub_map[src_phy_port];
gw_get_route_nh_port_ipv4(dest_address,
&dest_if, &nhip, dest_if);
struct arp_entry_data *ret_arp_data = NULL;
dest_if = INVALID_DESTIF;
- uint32_t src_phy_port = *src_port;
+ uint32_t src_phy_port = pkts[pkt_index]->port;
dest_if = pub_to_prv_map[src_phy_port];
gw_get_route_nh_port_ipv4(dest_address,
&dest_if, &nhip, dest_if);
uint32_t nhip = 0;
struct arp_entry_data *ret_arp_data = NULL;
- uint32_t src_phy_port = *src_port;
+ uint32_t src_phy_port = pkt->port;
dest_if = prv_to_pub_map[src_phy_port];
gw_get_route_nh_port_ipv4(dest_address,
&dest_if, &nhip, dest_if);
dest_address = entry->data.u.prv_ip;
struct arp_entry_data *ret_arp_data = NULL;
- uint32_t src_phy_port = *src_port;
-
+ uint32_t src_phy_port = pkt->port;
dest_if = pub_to_prv_map[src_phy_port];
gw_get_route_nh_port_ipv4(dest_address,
dest_address = rte_bswap32(*dst_addr);
struct arp_entry_data *ret_arp_data = NULL;
uint64_t start, end;
- uint32_t src_phy_port = *src_port;
+ uint32_t src_phy_port = pkt->port;
dest_if = prv_to_pub_map[src_phy_port];
gw_get_route_nh_port_ipv4(dest_address,
&dest_if, &nhip, dest_if);
}
dest_address = entry->data.u.prv_ip;
struct arp_entry_data *ret_arp_data = NULL;
- uint32_t src_phy_port = *src_port;
+ uint32_t src_phy_port = pkt->port;
dest_if = pub_to_prv_map[src_phy_port];
gw_get_route_nh_port_ipv4(dest_address,
&dest_if, &nhip, dest_if);
struct arp_entry_data *ret_arp_data;
- uint32_t src_phy_port = *src_port;
-
+ uint32_t src_phy_port = pkt->port;
dest_if = prv_to_pub_map[src_phy_port];
gw_get_route_nh_port_ipv4(dest_address,
&dest_if, &nhip, dest_if);
{
struct arp_entry_data *ret_arp_data;
- uint32_t src_phy_port = *src_port;
+ uint32_t src_phy_port = pkt->port;
dest_if = prv_to_pub_map[src_phy_port];
gw_get_route_nh_port_ipv4(dest_address,
&dest_if, &nhip, dest_if);