F-Stack / f-stack

F-Stack is an user space network development kit with high performance based on DPDK, FreeBSD TCP/IP stack and coroutine API.
http://www.f-stack.org
Other
3.76k stars 879 forks source link

How to compile SCTP source code files of FreeBSD to F-Stack? #730

Open markman76 opened 1 year ago

markman76 commented 1 year ago

Hello. Even though I found out the "enable sctp in fstack #45", I don't know how to compile SCTP source code of FreeBSD to F-Stack? Can I refer the metrials or any site for this issue?

markman76 commented 1 year ago

I am working on migrating FreeBSD to F-Stack. (F-stack version 1.21.2) I don't know which to use in the following case.

/opt/f-stack/lib/../freebsd/kern/kern_prot.c:1405: multiple definition of `cr_cansee' ff_glue.o:/opt/f-stack/lib/ff_glue.c:876: first defined here

The cr_cansee() function is defined in these two files: /opt/f-stack/freebsd/kern/kern_prot.c and /opt/f-stack/lib/ff_glue.c Which function should I use in this case?

jfb8856606 commented 1 year ago

You can try remove kern_prot.c from lib/Makefile.

markman76 commented 1 year ago

You can try remove kern_prot.c from lib/Makefile.

Thank you. The functions defined in the ff_*.c source files were used as the first priority. Do you had used or migrated the SCTP in F-Stack before?

jfb8856606 commented 1 year ago

I not used SCTP, but there are probably several general compatibility principles:

  1. Implement the hook interface in ff_xxx.c
  2. A small amount of special logic is processed in the freebsd code through the FSTACK macro definition, you can search FSTACK in the repo for reference.
anvayabn commented 8 months ago

Hi @markman76

Were you able to use SCTP ? Any updates regarding this by any chance ?

Thank you Regards

markman76 commented 7 months ago

Hi @markman76

Were you able to use SCTP ? Any updates regarding this by any chance ?

Thank you Regards

Hi anvayabn

Sorry for the late reply. The enabling SCTP is pending now. I will try to enable it later.