Skip to content

Commit

Permalink
Change of flow key nh for link local
Browse files Browse the repository at this point in the history
For link local packets, the packet's nh is RCV NH. The flow key nh for
these packets is chosen by Agent as nh of the interface of RCV NH. To
match this flow key nh, Vrouter also started using this NH as flow key
NH

Change-Id: If29d3a6cc2ae8148d690cd204a6813fb76e9715b
closes-bug: #1712934
  • Loading branch information
divakardhar committed Sep 4, 2017
1 parent a7ae032 commit 3e73bee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dp-core/vr_proto_ip.c
Expand Up @@ -748,7 +748,8 @@ vr_inet_flow_nexthop(struct vr_packet *pkt, unsigned short vlan)

if (vif_is_fabric(pkt->vp_if) && pkt->vp_nh) {
/* this is more a requirement from agent */
if ((pkt->vp_nh->nh_type == NH_ENCAP)) {
if ((pkt->vp_nh->nh_type == NH_ENCAP) ||
(pkt->vp_nh->nh_type == NH_RCV)) {
nh_id = pkt->vp_nh->nh_dev->vif_nh_id;
} else {
nh_id = pkt->vp_nh->nh_id;
Expand Down

0 comments on commit 3e73bee

Please sign in to comment.