Skip to content

Fix large events splitting in the 10 GbE local readout data packets formatter

Laurent Petre requested to merge 10gbe-packet-split-fix into devel

As the title and commit message suggest: large events could end up being not split into multiple Ethernet packets over the 10 GbE local readout link. This merge request aims at fixing that bug.

More details in the commit message:

Due to the hard equality, large events could be left not split, leading
to data corruption at the receiver side. More specifically, the (maximum
payload size - 7) had to be a multiple of 4 for the maximum packet size
condition to be met.

This commit fixes the issue by applying an inequality which ensures that
the maximum payload size is never exceeded (by GEM payload data).

Tested on a B904 GE1/1 test stand.

Edited by Laurent Petre

Merge request reports