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

Support QER gating for UP4 fastpath #565

Merged
merged 3 commits into from
Mar 10, 2022
Merged

Support QER gating for UP4 fastpath #565

merged 3 commits into from
Mar 10, 2022

Conversation

osinstom
Copy link
Contributor

No description provided.

@osinstom osinstom self-assigned this Mar 10, 2022
@osinstom osinstom requested a review from daniele-moro March 10, 2022 10:43
@osinstom osinstom changed the title Support QER gating with UP4 fastpath Support QER gating for UP4 fastpath Mar 10, 2022
daniele-moro
daniele-moro previously approved these changes Mar 10, 2022
Copy link
Contributor

@daniele-moro daniele-moro left a comment

Choose a reason for hiding this comment

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

LGTM, NIT

@@ -713,7 +715,7 @@ func (t *P4rtTranslator) BuildSessionsTableEntry(pdr pdr, sessionMeter meter, tu
}
}

func (t *P4rtTranslator) buildUplinkTerminationsEntry(pdr pdr, appMeterIdx uint32, shouldDrop bool, internalAppID uint8, tc uint8) (*p4.TableEntry, error) {
func (t *P4rtTranslator) buildUplinkTerminationsEntry(pdr pdr, appMeterIdx uint32, shouldDrop bool, internalAppID uint8, tc uint8, relatedQER qer) (*p4.TableEntry, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we have uniformity on the method signature between buildUplinkTerminationsEntry and buildDownlinkTerminationsEntry? Or otherwise, can't we use directly the shouldDrop param instead of passing the relatedQER and doing the gate status check inside here?

@osinstom osinstom requested review from ccascone and pudelkoM March 10, 2022 10:55
@EmanueleGallone
Copy link
Contributor

EmanueleGallone commented Mar 10, 2022

Just as a reminder: this PR depends on omec-project/pfcpsim#55 Switched to go-pfcp library. This can be easily replaced using pfcpsim's QER Builder, in a subsequent PR.

@osinstom osinstom merged commit 3e29b49 into master Mar 10, 2022
@osinstom osinstom deleted the qer-gating branch March 10, 2022 17:51
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.

3 participants