Skip to content

Commit

Permalink
If there is no flow, QOS configuration should come from interface
Browse files Browse the repository at this point in the history
The QOS configuration value from flow was always taken even if there
was no valid value in the flow.

Change-Id: I0ab874744257318bd90f11263e34dfe5e4b6307d
Closes-BUG: #1598772
  • Loading branch information
anandhk-juniper committed Jul 5, 2016
1 parent 52e0968 commit 4e5d7e8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions dp-core/vr_qos.c
Expand Up @@ -743,16 +743,19 @@ vr_qos_get_forwarding_class(struct vrouter *router, struct vr_packet *pkt,
struct vr_forwarding_md *fmd)
{
uint8_t tos;
int16_t qos_id;
int16_t qos_id = -1;
unsigned int fc_id;

struct vr_interface *vif;
struct vr_forwarding_class *fc_p;

vif = pkt->vp_if;

if (fmd->fmd_flow_index >= 0) {
qos_id = vr_flow_get_qos(router, pkt, fmd);
} else {
vif = pkt->vp_if;
}

if (qos_id < 0) {
qos_id = vif->vif_qos_map_index;
}

Expand Down

0 comments on commit 4e5d7e8

Please sign in to comment.