summaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorMarco Varlese <marco.varlese@suse.com>2018-10-04 11:52:44 +0200
committerDamjan Marion <dmarion@me.com>2018-10-04 12:36:04 +0000
commit29d22c52061df519c22b1bb58afe461d107899e2 (patch)
treedfa9eda670e0dd903ad7c921722feca793e3afa3 /src/vnet
parent06fda9cea94e0009fd0238a77d2e0f39e46f666c (diff)
VPP-1430: remove unnecessary padding
A copy/paste mistake caused to add padding to the buffer used to send data. Change-Id: I04d8dfec4ae195927be1675c5ce8b30230d5b376 Signed-off-by: Marco Varlese <marco.varlese@suse.com>
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/sctp/sctp_output.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/vnet/sctp/sctp_output.c b/src/vnet/sctp/sctp_output.c
index e69ff5c1529..08640a44311 100644
--- a/src/vnet/sctp/sctp_output.c
+++ b/src/vnet/sctp/sctp_output.c
@@ -1378,8 +1378,6 @@ sctp_push_hdr_i (sctp_connection_t * sctp_conn, vlib_buffer_t * b,
u16 bytes_to_add = sizeof (sctp_payload_data_chunk_t);
u16 chunk_length = data_len + bytes_to_add - sizeof (sctp_header_t);
- bytes_to_add += vnet_sctp_calculate_padding (bytes_to_add + data_len);
-
sctp_payload_data_chunk_t *data_chunk =
vlib_buffer_push_uninit (b, bytes_to_add);