Skip to content

RDKB-63242 : [epon-manager development ] hal integration#5

Merged
S-Parthiban-Selvaraj merged 12 commits intomainfrom
feature/hal-integration
Feb 16, 2026
Merged

RDKB-63242 : [epon-manager development ] hal integration#5
S-Parthiban-Selvaraj merged 12 commits intomainfrom
feature/hal-integration

Conversation

@S-Parthiban-Selvaraj
Copy link
Contributor

@S-Parthiban-Selvaraj S-Parthiban-Selvaraj commented Jan 26, 2026

Pull request overview

This PR integrates the EPON HAL library as an external dependency and updates function signatures to use the proper epon_hal_return_t return type throughout the codebase.

Changes:

  • Updated HAL function return types from int to epon_hal_return_t for type safety
  • Added new epon_hal_deinit() function implementation in the mock HAL
  • Removed epon_hal.h from local headers and added external include path configuration
  • Added proper HAL deinitialization in controller cleanup sequence

Updated all HAL API calls in eponMgr_data.c:

epon_hal_init()
epon_hal_get_link_stats()
epon_hal_get_transceiver_stats()
epon_hal_get_llid_info()
epon_hal_get_interface_list()
epon_hal_get_olt_info()
epon_hal_get_manufacturer_info()
epon_hal_get_link_info()
epon_hal_set_oam_log_mask()
dpoe_hal_get_cpe_mac_table()
Updated function declarations in eponMgr_data.h:

eponMgr_data_hal_init() - return type changed to epon_hal_return_t
eponMgr_data_set_oam_log_level() - return type changed to epon_hal_return_t
2. HAL Callback Signature Updates
Fixed alarm callback in eponMgr_controller.c line 110:
Changed from epon_alarm_info_t *alarm_info to const epon_alarm_info_t *alarm_info
3. Added HAL Deinitialization
Added epon_hal_deinit() call in eponMgr_controller.c:776 in the eponMgr_controller_destroy() function
This ensures proper HAL cleanup when the controller exits
4. Mock HAL Updates (epon_hal_mock.c)
Updated all mock function return types from int to epon_hal_return_t
Added new epon_hal_deinit() mock implementation for testing
@S-Parthiban-Selvaraj S-Parthiban-Selvaraj marked this pull request as ready for review January 26, 2026 14:58
Copilot AI review requested due to automatic review settings January 26, 2026 14:58
Copy link
Contributor

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 integrates the EPON HAL library as an external dependency and updates function signatures to use the proper epon_hal_return_t return type throughout the codebase.

Changes:

  • Updated HAL function return types from int to epon_hal_return_t for type safety
  • Added new epon_hal_deinit() function implementation in the mock HAL
  • Removed epon_hal.h from local headers and added external include path configuration
  • Added proper HAL deinitialization in controller cleanup sequence

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tests/hal_mock/epon_hal_mock.c Updated return types to epon_hal_return_t and added epon_hal_deinit() implementation
tests/hal_mock/Makefile.am Added external EPON HAL include path
src/rbus/Makefile.am Added external EPON HAL include path
src/core/stats_poller/Makefile.am Added external EPON HAL include path
src/core/data_structures/eponMgr_data.h Updated function signatures to return epon_hal_return_t
src/core/data_structures/eponMgr_data.c Updated variable types and function signatures to use epon_hal_return_t
src/core/data_structures/Makefile.am Added external EPON HAL include path
src/core/controller/eponMgr_controller.c Updated callback signature and added HAL deinitialization call
src/core/controller/Makefile.am Added external EPON HAL include path
src/core/Makefile.am Added external EPON HAL include path
include/Makefile.am Removed local epon_hal.h header file
design_docs/06_Configuration.md Removed ccsp-common-library from dependencies list

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings January 27, 2026 11:31
Copy link
Contributor

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

Copilot reviewed 15 out of 15 changed files in this pull request and generated 2 comments.

Comments suppressed due to low confidence (1)

src/rbus/wanmanager_update/eponMgr_wanmanager_update.c:231

  • Casting uint32_t to int could lead to incorrect behavior if the number of entries exceeds INT_MAX. Consider using uint32_t for num_entries and updating the loop variable accordingly, or add validation to ensure the value is within acceptable range.
    int num_entries = (int)rbusValue_GetUInt32(count_value);

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings January 28, 2026 15:07
Copy link
Contributor

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

Copilot reviewed 14 out of 14 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings February 9, 2026 11:35
Copy link
Contributor

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

Copilot reviewed 14 out of 14 changed files in this pull request and generated 9 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@S-Parthiban-Selvaraj S-Parthiban-Selvaraj merged commit 4d1bdc0 into main Feb 16, 2026
6 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Feb 16, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants