In order to pass per lcore queue input error statistics to the
application that does vif query, we allocate only VR_MAX_CPUS
worth of memory, but we try to copy vr_num_cpus worth of data.
In the case of vr_num_cpus > VR_MAX_CPUS (64), we will hit a snag.
As a fix, allocate memory for vr_num_cpus.
Reviewed: https:/ /review. opencontrail. org/24128 github. org/Juniper/ contrail- vrouter/ commit/ a709ccd317c289e 7790e51ccbb2e9e 27ddbe80fb
Committed: http://
Submitter: Zuul
Branch: R3.0
commit a709ccd317c289e 7790e51ccbb2e9e 27ddbe80fb
Author: Anand H. Krishnan <email address hidden>
Date: Fri Sep 9 19:20:27 2016 +0530
Fix memory allocation for interface request
In order to pass per lcore queue input error statistics to the
application that does vif query, we allocate only VR_MAX_CPUS
worth of memory, but we try to copy vr_num_cpus worth of data.
In the case of vr_num_cpus > VR_MAX_CPUS (64), we will hit a snag.
As a fix, allocate memory for vr_num_cpus.
Change-Id: Ifb1060aac20011 b8d51e1b31063a3 63fe268fd3d
Closes-Bug: #1621816