From dee68e63198fc367b2852650b85f7f7f5ff0aec1 Mon Sep 17 00:00:00 2001 From: Robert Schmidt Date: Tue, 10 Dec 2024 18:12:07 +0100 Subject: [PATCH] nFAPI: increase maximum segment size to 65000 nFAPI has a mechanism to segment messages that are too big for transport over a given medium (see e.g. SCF 225, section 2.3.2). The maximum segment size of 10000 makes that for larger payloads, e.g. TX_data.request, many small segments are to be sent. This can create or increase delays on the transport. On the other hand, the currently only available transport mechanism, UDP, allows to transport packets of up to almost 65535 bytes. Correspondingly, increase the maximum segment size so that less segments are to be created, and potentially, less delay is to be incurred. # Please enter the commit message for your changes. Lines starting --- nfapi/open-nFAPI/pnf/src/pnf_p7_interface.c | 2 +- nfapi/open-nFAPI/vnf/src/vnf_p7_interface.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nfapi/open-nFAPI/pnf/src/pnf_p7_interface.c b/nfapi/open-nFAPI/pnf/src/pnf_p7_interface.c index 76cf22cd83..fc96e8624d 100644 --- a/nfapi/open-nFAPI/pnf/src/pnf_p7_interface.c +++ b/nfapi/open-nFAPI/pnf/src/pnf_p7_interface.c @@ -29,7 +29,7 @@ nfapi_pnf_p7_config_t* nfapi_pnf_p7_config_create() // set the default parameters - _this->_public.segment_size = 1400; + _this->_public.segment_size = 65000; // UDP max packet size is 65535 _this->max_num_segments = 8; _this->_public.subframe_buffer_size = 8;// TODO: Initialize the slot_buffer size diff --git a/nfapi/open-nFAPI/vnf/src/vnf_p7_interface.c b/nfapi/open-nFAPI/vnf/src/vnf_p7_interface.c index 904a838179..18fa798e9e 100644 --- a/nfapi/open-nFAPI/vnf/src/vnf_p7_interface.c +++ b/nfapi/open-nFAPI/vnf/src/vnf_p7_interface.c @@ -42,7 +42,7 @@ nfapi_vnf_p7_config_t* nfapi_vnf_p7_config_create() return 0; // todo : initialize - _this->_public.segment_size = 1400; + _this->_public.segment_size = 65000; // UDP max packet size is 65535 _this->_public.max_num_segments = 8; _this->_public.checksum_enabled = 1;