config: update MAX_FRAG to support jumbo packets
PATCH 1/1 config: update MAX_FRAG to support jumbo packets
RTE_LIBRTE_IP_FRAG_MAX_FRAG flag value increased from 4 to 8. By this pkt size greater than 6000 is supported in ip-fragmentation and ip-reassembly.
Fixes 9788b93b9d5 ("config: MAX_FRAG updated to support the jumbo
packets")
Cc: [email protected]
Signed-off-by Apeksha Gupta <[email protected]>
--- config/common_base | 2 +- config/rte_config.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
config/common_base +1 -1
@@ -950,7 +950,7 @@ CONFIG_RTE_LIBRTE_NET=y # CONFIG_RTE_LIBRTE_IP_FRAG=y CONFIG_RTE_LIBRTE_IP_FRAG_DEBUG=n -CONFIG_RTE_LIBRTE_IP_FRAG_MAX_FRAG=4 +CONFIG_RTE_LIBRTE_IP_FRAG_MAX_FRAG=8 CONFIG_RTE_LIBRTE_IP_FRAG_TBL_STAT=n #
config/rte_config.h +1 -1
@@ -82,7 +82,7 @@#define RTE_RAWDEV_MAX_DEVS 64/* ip_fragmentation defines */ -#define RTE_LIBRTE_IP_FRAG_MAX_FRAG 4 +#define RTE_LIBRTE_IP_FRAG_MAX_FRAG 8#undef RTE_LIBRTE_IP_FRAG_TBL_STAT/* rte_power defines */
Signature · 1 line
2.17.1
Quoted 33 lines
RTE_LIBRTE_IP_FRAG_MAX_FRAGflag value increased from 4 to 8. By this pkt size greater than 6000 is supported in ip-fragmentation and ip-reassembly.Fixes 9788b93b9d5 ("config: MAX_FRAG updated to support the jumbopackets")
Cc: [email protected]Signed-off-by Apeksha Gupta <[email protected]>--- config/common_base | 2 +- config/rte_config.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)config/common_base +1
-1@@ -950,7 +950,7 @@ CONFIG_RTE_LIBRTE_NET=y # CONFIG_RTE_LIBRTE_IP_FRAG=y CONFIG_RTE_LIBRTE_IP_FRAG_DEBUG=n -CONFIG_RTE_LIBRTE_IP_FRAG_MAX_FRAG=4 +CONFIG_RTE_LIBRTE_IP_FRAG_MAX_FRAG=8 CONFIG_RTE_LIBRTE_IP_FRAG_TBL_STAT=n #config/rte_config.h +0
-0
config/rte_config.h line 86
Quoted 6 lines
config/rte_config.h +1
-1@@ -82,7 +82,7 @@#define RTE_RAWDEV_MAX_DEVS 64/* ip_fragmentation defines */ -#define RTE_LIBRTE_IP_FRAG_MAX_FRAG 4 +#define RTE_LIBRTE_IP_FRAG_MAX_FRAG 8#undef RTE_LIBRTE_IP_FRAG_TBL_STAT
Not sure it is a good idea - it will double size of reassembly table (and number of required mbufs) for users who use default value. The proper way would be, I think to restructure reassemble code, to make max_frag_num an extra parameter for rte_ip_frag_table_create().
Quoted 4 lines
config/rte_config.h +0
-1/* rte_power defines */ --2.17.1