Skip to contentSkip to conversation

ip_frag: increase default value for config parameter

PATCH In review Konstantin Ananyev 2 participants 2 messages Nov 2, 2021 – Nov 8, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ip_frag: increase default value for config parameter

Increase default value for config parameter RTE_LIBRTE_IP_FRAG_MAX_FRAG from 4 to 8. This parameter controls maximum number of fragments per packet in ip reassembly table. Increasing this value from 4 to 8 will allow users to cover common case with jumbo packet size of 9KB and fragments with default frame size (1500B).
As RTE_LIBRTE_IP_FRAG_MAX_FRAG is used in definition of public structure (struct rte_ip_frag_death_row), this is an ABI change.

---
 config/rte_config.h                    | 2 +-
 doc/guides/rel_notes/release_21_11.rst | 8 ++++++++
 2 files changed, 9 insertions(+), 1 deletion(-)
config/rte_config.h +1 -1
index 1a66b42fcc..08e70af497 100644
@@ -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 */
doc/guides/rel_notes/release_21_11.rst +8 -0
index 502cc5ceb2..4d0f112b00 100644
@@ -543,6 +543,14 @@ ABI Changes
 
 * eventdev: Re-arranged fields in ``rte_event_timer`` to remove holes.
 
+* Increase default value for config parameter ``RTE_LIBRTE_IP_FRAG_MAX_FRAG``
+  from ``4`` to ``8``. This parameter controls maximum number of fragments
+  per packet in ip reassembly table. Increasing this value from ``4`` to ``8``
+  will allow users to cover common case with jumbo packet size of ``9KB``
+  and fragments with default frame size ``(1500B)``.
+  As ``RTE_LIBRTE_IP_FRAG_MAX_FRAG`` is used in definition of
+  public structure ``rte_ip_frag_death_row``, this is an ABI change.
+
 
 Known Issues
 ------------
Signature · 1 line
2.25.1
#1 lore raw

02/11/2021 20:03, Konstantin Ananyev:

Quoted 12 lines

Increase default value for config parameter RTE_LIBRTE_IP_FRAG_MAX_FRAG from 4 to 8. This parameter controls maximum number of fragments per packet in ip reassembly table. Increasing this value from 4 to 8 will allow users to cover common case with jumbo packet size of 9KB and fragments with default frame size (1500B).
As RTE_LIBRTE_IP_FRAG_MAX_FRAG is used in definition of public structure (struct rte_ip_frag_death_row), this is an ABI change.

---

config/rte_config.h line 85

Quoted 2 lines
config/rte_config.h +1 -1
-#define RTE_LIBRTE_IP_FRAG_MAX_FRAG 4
+#define RTE_LIBRTE_IP_FRAG_MAX_FRAG 8

This unannounced change was approved by the techboard:
http://inbox.dpdk.org/dev/[email protected]/

Applied with simplified release notes, thanks.