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/24033 github. org/Juniper/ contrail- vrouter/ commit/ 74bc8f26ecfd99b ad9dcb6948d038b 5efe8dfa41
Committed: http://
Submitter: Zuul
Branch: R3.0.2.x
commit 74bc8f26ecfd99b ad9dcb6948d038b 5efe8dfa41
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