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

[XrdNet and XrdHttp] Scitag min and max value change #2139

Merged
merged 2 commits into from Dec 4, 2023

Conversation

ccaffy
Copy link
Contributor

@ccaffy ccaffy commented Dec 1, 2023

Hi @abh3 ,

I took a bit of time to work on adapting the packet marking to comply with the specification where the scitag.flow has to have values between 65 and 65535.

I did two commits. The first one is changing the min and max values that a scitag can have and that modifies the XrdHttp part to check the validity of the scitag value given by the user.

The second one also touches the configuration of the scitag configuration from a JSON file (taking into account min and max values). I also modified the validation of the PMark handle where a scitag=0 will only be valid for HTTP-TPC (according to the specs). For other protocols, the scitag given by the user will have to be between 65 and 65535, otherwise the traffic will not be tagged.

Thanks for your review!

Cheers,
Cedric

@ccaffy ccaffy requested review from amadio and abh3 December 1, 2023 08:57
@amadio amadio changed the base branch from devel to master December 1, 2023 10:40
@ccaffy ccaffy changed the title Scitag max value change [XrdNet and XrdHttp] Scitag min and max value change Dec 1, 2023
Copy link
Member

@abh3 abh3 left a comment

Choose a reason for hiding this comment

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

Looks good but there is no need to differentiate between protocols. The SciTag specs are independent of the protocol.

src/XrdNet/XrdNetPMark.hh Outdated Show resolved Hide resolved
src/XrdNet/XrdNetPMark.hh Show resolved Hide resolved
…for expID and actID

Also modified the validation of the scitag provided by the user. Checks whether the expID and actID are within the min and max values.
In the case the provided value is not correct, the packets will be
marked with a scitag = 0 (expId = 0 and actId = 0)
@amadio amadio added this to the 5.6.4 milestone Dec 4, 2023
@amadio amadio merged commit f4851db into xrootd:master Dec 4, 2023
13 checks passed
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.

None yet

3 participants