summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWenxian Li <wenxianl@cisco.com>2015-09-08 23:58:04 -0400
committerWenxian Li <wenxianl@cisco.com>2015-09-08 23:58:04 -0400
commit2e5fdf7cc07549de848ef3396c9301c7a317f966 (patch)
treeb19c8b9c728e8ad41ba999241d9bbf4e3cf42c65
parentfb7f697ef6acb6b5cd3c5d24c698ac4abaa8fa8f (diff)
fix some errors after pull request
-rw-r--r--scripts/cap2/per_template_gen2.yaml8
-rwxr-xr-xsrc/bp_sim.h8
2 files changed, 8 insertions, 8 deletions
diff --git a/scripts/cap2/per_template_gen2.yaml b/scripts/cap2/per_template_gen2.yaml
index 269e4958..3349087c 100644
--- a/scripts/cap2/per_template_gen2.yaml
+++ b/scripts/cap2/per_template_gen2.yaml
@@ -13,8 +13,8 @@
generator_clients :
- name : "c1"
distribution : "seq"
- ip_start : "26.0.0.1"
- ip_end : "26.0.1.255"
+ ip_start : "16.0.0.1"
+ ip_end : "16.0.1.255"
- name : "c2"
distribution : "seq"
ip_start : "36.0.0.1"
@@ -22,8 +22,8 @@
generator_servers :
- name : "s1"
distribution : "seq"
- ip_start : "28.0.0.1"
- ip_end : "28.0.1.255"
+ ip_start : "48.0.0.1"
+ ip_end : "48.0.1.255"
track_ports : false
- name : "s2"
distribution : "seq"
diff --git a/src/bp_sim.h b/src/bp_sim.h
index 804c936a..29b9a724 100755
--- a/src/bp_sim.h
+++ b/src/bp_sim.h
@@ -1376,17 +1376,17 @@ public:
//private:
+ CTupleGeneratorSmart *m_tuple_gen;
// cache line 1 - 64bytes waste of space !
uint32_t m_nat_external_ipv4; /* client */
uint32_t m_nat_external_ipv4_server;
uint16_t m_nat_external_port;
- uint16_t m_nat_pad;
+ uint16_t m_nat_pad[3];
mac_addr_align_t m_src_mac;
- CTupleGeneratorSmart *m_tuple_gen;
uint32_t m_src_idx;
uint32_t m_dest_idx;
- uint32_t m_end_of_cache_line[10];
+ uint32_t m_end_of_cache_line[6];
public:
bool operator <(const CGenNode * rsh ) const {
@@ -1592,7 +1592,7 @@ public:
#if __x86_64__
/* size of 64 bytes */
- #define DEFER_CLIENTS_NUM (18)
+ #define DEFER_CLIENTS_NUM (16)
#else
#define DEFER_CLIENTS_NUM (16)
#endif