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

Hi, why the tail call always can't run successfully, thanks #70

Open
bradley-code-again opened this issue Oct 18, 2023 · 4 comments
Open

Comments

@bradley-code-again
Copy link

Hi, thanks for your wonderful project and sharing. I am trying to run your code but without TRex. I send some dummy GTP packets of N3 and UDP packets of N6 to the running program. The packets can be caught at the entry_point of SEC("xdp_entry_point"), but these packets never can come to SEC("xdp_uplink_entry_point") or SEC("xdp_downlink_entry_point"), and the tail call is always failed.
I am wondering why, and when will you call getUplinkFileDescriptor(). It looks like you don't need to call that to trigger tail call? many thanks for your ideas.

@bradley-code-again bradley-code-again changed the title Hi, why my tail call always can't run successfully, thanks Hi, why the tail call always can't run successfully, thanks Oct 18, 2023
@bradley-code-again
Copy link
Author

And I am wondering where is SessionProgram::setup() called? I haven't found it been called anywhere, thanks.

@hrkgarg
Copy link

hrkgarg commented Oct 30, 2023

Hi Bradley,

I seem that you have been able to run this project and really gone far in running this. However, I was proceeding as per documentation, and is stuck currently. When using command "make install" inside the docker, I am getting issue in compilation of Configuration.cpp file.
On digging further, I understand that this could be the issue with values provided in env.sh wherein SOCKET_BUFFER_ENABLED=0 is provided. Additionally, few other parameters are also there for GTP and UDP interface names.
Can you help me with providing this information, So, that I can compile and run it in my setup.

Thanks

@navarrothiago
Copy link
Owner

@bradley-code-again, @hrkgarg, Sorry for the late reply. I appreciate that you have been trying to run. I am without band right now to help you guys. This definitely could have some issue.

@bradley-code-again, did you create the PFCP Session? Check here: https://github.com/navarrothiago/upf-bpf/tree/master/tests/api/requests_body. You can import inside Postman. Usually, three steps are done:

  • Setup configuration
  • Create the pfcp session

@restart-again
Copy link

@hrkgarg, hi, I didn't change anything in env.sh. There is a problem of a cpp file, I changed somewhere manually. I don't remember exactly what I have changes, but it is somewhere auto generated. Read the error carefully, then you may find it.
@navarrothiago, thanks, it works now.

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

No branches or pull requests

4 participants