Skip to content

Commit

Permalink
Merge "Increase the buffer size when NH has higher number of componen…
Browse files Browse the repository at this point in the history
…ts." into R3.2
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Oct 25, 2016
2 parents ac9fca2 + 497f565 commit e32ab6d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/vnsw/agent/vrouter/ksync/nexthop_ksync.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,13 @@ class NHKSyncEntry : public KSyncNetlinkDBEntry {
void SetEncap(InterfaceKSyncEntry *if_ksync, std::vector<int8_t> &encap);
bool is_bridge() const { return is_bridge_; }

int MsgLen() { return kDefaultNhMsgSize; }
int MsgLen() {
// for larger component NH lists, increase message length
if (component_nh_list_.size() < 256)
return kDefaultNhMsgSize;
else
return 2 * kDefaultNhMsgSize;
}
private:
class KSyncComponentNH {
public:
Expand Down

0 comments on commit e32ab6d

Please sign in to comment.