Skip to content

Update WLS library dependencies#283

Open
rubensoaressilva wants to merge 1 commit into
duranta-project:developfrom
rubensoaressilva:upgrade_wls
Open

Update WLS library dependencies#283
rubensoaressilva wants to merge 1 commit into
duranta-project:developfrom
rubensoaressilva:upgrade_wls

Conversation

@rubensoaressilva

Copy link
Copy Markdown
Collaborator

This PR aims to upgrade the used WLS library and dependencies to align with Release K , following the drop of support for Release F previously used PR #259.

This was tested locally after installing the new DPDK version and WLS library according to ORAN_FHI7.2_Tutorial.md and nfapi.md.

@rubensoaressilva rubensoaressilva added the 5G-NR Perform 5G Tests label Jul 9, 2026
@rorsc rorsc mentioned this pull request Jul 10, 2026
@rorsc rorsc self-requested a review July 10, 2026 04:45
@rorsc rorsc added BUILD-ONLY Execute build stages only for code improvements with no impact on 4G/5G functionality. and removed 5G-NR Perform 5G Tests labels Jul 10, 2026
@@ -1,44 +1,11 @@
diff --git a/wls_lib/Makefile b/wls_lib/Makefile
index 2f8e4b2..7b99a26 100644
index 7b167a6..132043d 100644

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why do we need that patch at all? I suggest you open a PR on https://github.com/openairinterface/o-du-phy/

@rubensoaressilva rubensoaressilva Jul 10, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

The patch is to install the WLS headers and library to the system, so that it can be easily found by find_library in nfapi/oai_integration/wls_integration/CMakeLists.txt without having extra parameters on build_oai

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I know. but we can integrate the patch it into our fork. If a user clones that, there is no need to apply this patch anymore.

please open a PR there

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I opened the PR, I'll remove the patch then.
#5

- TARGET_PROCESSOR := -xCORE-AVX2
-else ifeq ($(WIRELESS_SDK_TARGET_ISA),avx512)
+ ifeq ($(WIRELESS_SDK_TARGET_ISA),sse)
+ TARGET_PROCESSOR := -xSSE4.2

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

that seems wrong, it's maybe also -mXXX

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This came from the original patch, I'll test reverting all changes except the addition of the installation part, and the search for DPDK, I still think that one's useful.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I cleaned the Makefile changes and opened a PR, mentioned above

Comment thread doc/nfapi.md Outdated

The WLS library has a few dependencies:
- [DPDK](https://doc.dpdk.org/guides/prog_guide/build-sdk-meson.html), specifically version [20.11.3](https://fast.dpdk.org/rel/dpdk-20.11.3.tar.xz).
- [DPDK](https://doc.dpdk.org/guides/prog_guide/build-sdk-meson.html) Currently using DPDK version [22.11.11](http://fast.dpdk.org/rel/dpdk-22.11.11.tar.xz).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
- [DPDK](https://doc.dpdk.org/guides/prog_guide/build-sdk-meson.html) Currently using DPDK version [22.11.11](http://fast.dpdk.org/rel/dpdk-22.11.11.tar.xz).
- [DPDK](https://doc.dpdk.org/guides/prog_guide/build-sdk-meson.html) in version [22.11.11](http://fast.dpdk.org/rel/dpdk-22.11.11.tar.xz).

not sure what "Currently" means, likely a somewhat newer is fine as well?!

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Looking back, yes, it's a bit misleading, I'll change it

#define WLS_DEV_NAME "wls"
#define WLS_MAC_MEMORY_SIZE 0x7F000000
#define WLS_PHY_MEMORY_SIZE 0x7F000000
#define WLS_MAC_MEMORY_SIZE 0x18000000

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why these changes, can you please comment? could you please note that in the commit message?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

These changes were needed because I was encountering multiple failures in allocating the WLS memory while testing with the new version, errors that I didn't find with the previous version, I'll test tweaking the values closer to the original ones to see how close I can get them.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I was able to tweak the values up to 0x3F000000

#define WLS_PHY_MEMORY_SIZE 0x7F000000
#define WLS_MAC_MEMORY_SIZE 0x18000000
#define WLS_PHY_MEMORY_SIZE 0x18000000
#define WLS_UL_ENQUEUE_SIZE 0

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

unqueue size of 0 looks suspicious, please add a comment on why

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

It was done to keep in line with the testapp.c present in the wls repository, setting it to 0 makes it internally allocate the maximum.
In wls_lib_dpdk.c:

            if (nWlsULEnqueueSize == 0)
            {
                pWlsDrvCtx->nWlsULEnqueueSize = UL_FREE_BLOCK_QUEUE_SIZE_MAX;
            }

I'll add a comment stating this.

Comment thread doc/nfapi.md Outdated
…se K.

Signed-off-by: Rúben Soares Silva <rsilva@allbesmart.pt>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BUILD-ONLY Execute build stages only for code improvements with no impact on 4G/5G functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants