summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-12-16 07:56:47 -0800
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-12-16 07:56:47 -0800
commit1ac95d5869e12173066db862d3f1b9025b6a4d39 (patch)
treeb4bcc3e765b6e35e2d489723300144009b37b3eb
parent2c03006805e6973c371dd55e0adb7077bd503699 (diff)
table: always try to merge NLRIs to one message
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--table/message.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/table/message.go b/table/message.go
index c6437d18..97ec3b16 100644
--- a/table/message.go
+++ b/table/message.go
@@ -192,17 +192,11 @@ func CreateUpdateMsgFromPaths(pathList []*Path) []*bgp.BGPMessage {
var msgs []*bgp.BGPMessage
pathByAttrs := make(map[uint32][]*bucket)
- pathLen := len(pathList)
for _, path := range pathList {
if path == nil {
continue
}
y := func(p *Path) bool {
- // the merging logic makes gobgpd slower so if
- // paths are not many, let's avoid mering.
- if pathLen < 1024 {
- return false
- }
if p.GetRouteFamily() != bgp.RF_IPv4_UC {
return false
}