Bug 1339 - Ice pmd driver ice_rss_init error message "not support in safe mode"
Summary: Ice pmd driver ice_rss_init error message "not support in safe mode"
Status: IN_PROGRESS
Alias: None
Product: DPDK
Classification: Unclassified
Component: ethdev (show other bugs)
Version: 20.11
Hardware: All All
: Normal normal
Target Milestone: ---
Assignee: dev
URL:
Depends on:
Blocks:
 
Reported: 2023-12-30 04:42 CET by WeiFang
Modified: 2024-01-02 14:30 CET (History)
0 users



Attachments

Description WeiFang 2023-12-30 04:42:11 CET
In the ice pmd driver code, ad ->is_safe_mode uninitialized ,with a random value may cause ice_rss_Init() return error message "  not support in safe mode " .To solve this problem, it is necessary to add code at the beginning of the ice_dev_init()  "ad->safe_mode=0;"


//
I encountered this issue while debugging the e810 network card. The ice driver code uses rte_socket_zmalloc, but this function does not initialize the memory to 0 (but the annotation will clear 0? A bug ? only memset 0 in debug code), which caused the above problem.
Comment 1 WeiFang 2024-01-02 14:30:22 CET
How should I submit the code?"ad->safe_mode=0;"

Note You need to log in before you can comment on or make changes to this bug.