Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

bkochrs
Copy link
Collaborator

@bkochrs bkochrs commented Aug 22, 2023

No description provided.

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)
Copy link
Collaborator

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.
Copy link
Collaborator

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 = {
/*
Copy link
Collaborator

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)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
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)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
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
Copy link
Collaborator

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?

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