Move most of the code to send a control segment to a single function to avoid copies of boilerplate code in a few functions. Change-Id: Id2d4770b6bec3f10b4eb786af3eb2a25482d953d Signed-off-by: Leandro Pereira <leandro.pereira@intel.com>