Skip to content

Conversation

@AlexanderGrissik
Copy link
Collaborator

See FR 3886011.
XLIO halts support of the extra API used by sockperf.

XLIO halts support for Socketxtreme, recvfrom_zerocopy and RX-callback APIs.

Signed-off-by: Alexander Grissik <[email protected]>
The USING_EXTRA_API was used to determine whether XLIO or VMA API is in use.
Since XLIO API is removed, the USING_EXTRA_API can be replaced by simply USING_VMA_EXTRA_API directly.

Signed-off-by: Alexander Grissik <[email protected]>
The std::unary_function and std::binary_function are deprecated since C++11 and are not needed anymore for C++11 containers.

Signed-off-by: Alexander Grissik <[email protected]>
@AlexanderGrissik AlexanderGrissik requested a review from Copilot June 8, 2025 08:34
@AlexanderGrissik
Copy link
Collaborator Author

/review

@AlexanderGrissik AlexanderGrissik requested a review from galnoam June 8, 2025 08:34
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes support for the XLIO Extra API from sockperf and related components. The changes update header guards, function names, documentation, build configuration, and conditional compilation macros to eliminate XLIO support in favor of the VMA API only.

  • Removed XLIO-specific functions, error messages, and preprocessor macros.
  • Updated build files and documentation to reflect usage of VMA API.
  • Adjusted comments and naming to ensure consistency across modules.

Reviewed Changes

Copilot reviewed 18 out of 18 changed files in this pull request and generated 1 comment.

File Description
src/vma-redirect.{h,cpp} Updated header guard, function names, and comments to remove XLIO.
src/sockperf.cpp Modified API calls and error messages to reference only VMA.
src/server.{h,cpp} Removed XLIO callback paths and retained only VMA-based implementations.
configure.ac & Makefile.am Removed XLIO extra API checks and updated build file references.
Comments suppressed due to low confidence (3)

src/sockperf.cpp:2165

  • The update replacing 'vma_xlio_set_func_pointers' with 'vma_set_func_pointers' is consistent with the removal of XLIO support. Ensure that corresponding error messages and documentation are updated throughout to reflect this change.
bool success = vma_set_func_pointers(optarg);

configure.ac:107

  • The removal of XLIO extra API configuration is clear. Please verify that the build scripts and overall documentation have been updated accordingly to avoid misleading references.
AC_MSG_RESULT([${have_xlio_api}])

src/defs.h:169

  • Replacing the generic USING_EXTRA_API macro with USING_VMA_EXTRA_API should be reviewed across the codebase to ensure that all conditional compilation paths and macro references are consistently updated.
#ifdef USING_VMA_EXTRA_API // For VMA socketxtreme Only

* all functions return 'true' on success; 'false' - otherwise
*
* NOTE: including this header will redirect all relevant API calls to pointers
* to functions. Hence, you you are allowed to call any of the relevant APIs,
Copy link

Copilot AI Jun 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment contains a duplicated word ('you you') in the phrase 'you you are allowed to call'. Consider correcting it to improve readability.

Suggested change
* to functions. Hence, you you are allowed to call any of the relevant APIs,
* to functions. Hence, you are allowed to call any of the relevant APIs,

Copilot uses AI. Check for mistakes.
@igor-ivanov
Copy link
Collaborator

bot:retest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants