-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation and improvements #1
base: main
Are you sure you want to change the base?
Conversation
target_include_directories(dpdk_msr4_rx PUBLIC ${CMAKE_SOURCE_DIR}/include) | ||
target_link_libraries(dpdk_msr4_rx ${DPDK_LIBRARIES}) | ||
target_link_libraries(dpdk_msr4_rx ${DPDK_LIBRARIES} zmq) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This dependency has to be flagged with USE_ZMQ, too.
#define CALIB_SKIP_DURATION 1 // 1s, give calibration enough time to finish before processing packets again | ||
#define IQ_FILES_BASE_PATH "/tmp/iq_dump/" //where to store the iq dumps | ||
|
||
#define CHUNK_SIZE 131072 //this is the size of a buffer that gets forwarded using zmq. WRITE_BUFFER_SIZE % CHUNK_SIZE should 0. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As these are macros, you can add a static_assert
to check this condition.
|
||
// Port configuration | ||
struct rte_eth_conf port_conf = { | ||
/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can remove the commented code.
} | ||
|
||
static int launch_lcores(__rte_unused void *dummy) | ||
{ | ||
// Get lcore id | ||
int lcore_id = rte_lcore_id(); | ||
|
||
if (lcore_id <= 4) | ||
if (lcore_id > 0 && lcore_id < NB_PORTS + 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (lcore_id > 0 && lcore_id < NB_PORTS + 1) | |
if (lcore_id > 0 && lcore_id <= NB_PORTS) |
lcore_rx(); | ||
} | ||
else if (lcore_id >= 5 && lcore_id <= 8) | ||
else if (lcore_id > NB_PORTS && lcore_id < 2 * NB_PORTS + 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
else if (lcore_id > NB_PORTS && lcore_id < 2 * NB_PORTS + 1) | |
else if (lcore_id > NB_PORTS && lcore_id <= 2 * NB_PORTS) |
{ | ||
// Lcores 5-8 handle file dump | ||
// Lcores for file dump | ||
lcore_dump(); | ||
} | ||
else |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you need the else
branch if it is empty? Or did you remove the exception by accident?
No description provided.