Skip to content

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