]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Avoid extra copy of received data to buffer
authorSoman K S <somanks@gmail.com>
Sat, 30 May 2020 08:23:45 +0000 (13:53 +0530)
committerSoman K S <somanks@gmail.com>
Sat, 30 May 2020 08:23:45 +0000 (13:53 +0530)
commit7c9d82cdd578a95cfe729354e3dffb5ac26ebcfe
tree42c9fb0a7df3fa7f3d8b5ffbbcd9fc18edb30822
parenta3c669b9e1b176c8b70a68f2a2ad29ff475c7f50
bgpd: Avoid extra copy of received data to buffer

When received packet is processed in bgp_process_reads(), the data
is copied to static buffer and then copied to stream buffer.
The data can be copied directly to stream buffer which will avoid extra memcpy

Signed-off-by: kssoman <somanks@gmail.com>
bgpd/bgp_io.c