You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Integer configuration parameters were incorrectly accepting boolean
and string values instead of throwing type validation errors.
This fix adds proper type checking in parameter_descriptor::get_value()
to ensure type safety.
Changes:
- Add type validation check to reject mismatched types
- Remove deprecated kernel_fd_attention_level parameter from schema
- Update tests to verify type validation works correctly for all types
- Add comprehensive unit tests for type mismatch scenarios
Fixes issue where these integer parameters accepted invalid types:
- performance.rings.tx.udp_buffer_batch
- performance.polling.kernel_fd_attention_level (now removed)
- performance.buffers.tx.global_array_size
The fix ensures that boolean and string values are properly rejected for
integer parameters, causing configuration loading to fail with
appropriate error messages instead of silently accepting invalid values.
Signed-off-by: Tomer Cabouly <[email protected]>
For select() or poll() this will force XLIO to check the non offloaded fd even though an offloaded socket has ready packets found while polling. Maps to **XLIO_SELECT_SKIP_OS** environment variable.
667
667
Default value is 4
668
668
669
-
performance.polling.kernel_fd_attention_level
670
-
Controls threshold for checking kernel file descriptors during polling. 0 means never check. Maps to **XLIO_RING_KERNEL_FD_ATTENTION_LEVEL** environment variable. This setting affects how often XLIO checks for activity on non-offloaded kernel file descriptors while processing offloaded sockets.
671
-
Default value is 10
672
-
673
669
performance.polling.max_rx_poll_batch
674
670
Maximum number of receive buffers processed in a single poll operation. Maps to **XLIO_CQ_POLL_BATCH_MAX** environment variable. Max size of the array while polling the CQs in the XLIO.
Copy file name to clipboardExpand all lines: src/core/config/descriptor_providers/xlio_config_schema.json
-7Lines changed: 0 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1026,13 +1026,6 @@
1026
1026
"title": "Offload transition poll count",
1027
1027
"description": "XLIO maps all UDP sockets as potential offloaded capable. Only after the ADD_MEMBERSHIP does the offload start to work and the CQ polling kicks in XLIO. This parameter controls the polling count during this transition phase where the socket is a UDP unicast socket and no multicast addresses were added to it. Once the first ADD_MEMBERSHIP is called the RX poll duration setting takes effect. Value range is similar to the RX poll duration; -1 means infinite, 0 disables. Maps to XLIO_RX_POLL_INIT environment variable."
1028
1028
},
1029
-
"kernel_fd_attention_level": {
1030
-
"type": "integer",
1031
-
"minimum": 0,
1032
-
"default": 10,
1033
-
"title": "Kernel FD attention threshold",
1034
-
"description": "Controls threshold for checking kernel file descriptors during polling. 0 means never check. Maps to XLIO_RING_KERNEL_FD_ATTENTION_LEVEL environment variable. This setting affects how often XLIO checks for activity on non-offloaded kernel file descriptors while processing offloaded sockets."
0 commit comments