]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
msg/async/frames_v2: introduce FrameAssembler
authorIlya Dryomov <idryomov@gmail.com>
Fri, 24 Apr 2020 16:01:46 +0000 (18:01 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 23 Jun 2020 07:21:40 +0000 (09:21 +0200)
commit485c734953aa6b1af336ac6a42bcd1c4e95d01d3
treee898d19cc66a74b4380f1e840d2af29101159c5a
parent446a05ec5bdf5fbaf9e203c3224cc6860ffeb72f
msg/async/frames_v2: introduce FrameAssembler

Start separating frame assembly and disassembly code from
frame sending, receiving and handling code, so that assembly
and disassembly pieces can be unit tested and hopefully also
shared between different messengers (e.g. crimson).

This commit factors out the assembly code from Frame.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 872b125a5b817def84ed5d70d204fec5a4fa7c1e)

Conflicts:
src/msg/async/frames_v2.h [ commit 1a975fb3a801 ("msg/async:
  fix unnecessary 4 kB allocation in secure mode.") not in
  octopus ]
src/crimson/CMakeLists.txt
src/crimson/net/ProtocolV2.cc
src/crimson/net/ProtocolV2.h
src/msg/CMakeLists.txt
src/msg/async/ProtocolV2.cc
src/msg/async/ProtocolV2.h
src/msg/async/frames_v2.cc [new file with mode: 0644]
src/msg/async/frames_v2.h