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

Add support TRex callbacks #1122

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ehhkjjn
Copy link
Contributor

@ehhkjjn ehhkjjn commented Apr 3, 2024

Hi,

Here is a suggestion to add support for a user defined callback in TX burst before the packet is sent.
This can for example be used to simulate packet drops by registering an implementation of the tx_burst callback function that returns a smaller packet count and moves all packets to send to the beginning of the tx_pkts array.

The callback function is encapsulated within a struct to make it possible to add more callback functions in the future.

Please take a look and let me know what you think.

BR
Henrik

@trex-bot
Copy link

trex-bot commented Apr 3, 2024

Checked SHA: 0eae6f1
Status: SUCCESS ✔️
Link to job: http://81.218.86.50:8080/job/trex_build/836/

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