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

nff-go packet reassemble question about how nff-go to use new dpdk ip_frag_death_row struct #729

Closed
zh7606559342012 opened this issue Jul 31, 2021 · 0 comments

Comments

@zh7606559342012
Copy link

hello
i use nff-go low.go to create a new function in dpdk low.h ,it 's have some wrong ,could you help me ?
i find all net cant find the answer to the question
i base on 18.09 dpdk

in low.go
func CreateIpFragDeathTbl() Ip_Frag_Death_Row {
return C.create_ip_frag_death_row_table()
}

type Ip_Frag_Death_Row *C.struct_rte_ip_frag_death_row

in low.h
struct rte_ip_frag_death_row* create_ip_frag_death_row_table();

struct rte_ip_frag_death_row* create_ip_frag_death_row_table() {
struct rte_ip_frag_death_row* pdeath_row = NULL;
struct rte_ip_frag_death_row death_row;
death_row.cnt = 0;
pdeath_row = &death_row;
return pdeath_row;
}

when i am in nff-go to make cmdline make
it report worry

[root@localhost nff-go]# make
make -C nff-go-base
Checking for AVX support... AVX and AVX2
make[1]: Entering directory /home/zhenghao/share/go_project/src/5gc/vendor/github.com/intel-go/nff-go/nff-go-base' make[1]: Nothing to be done for all'.
make[1]: Leaving directory /home/zhenghao/share/go_project/src/5gc/vendor/github.com/intel-go/nff-go/nff-go-base' make -C dpdk Checking for AVX support... AVX and AVX2 make[1]: Entering directory /home/zhenghao/share/go_project/src/5gc/vendor/github.com/intel-go/nff-go/dpdk'
make[1]: Nothing to be done for all'. make[1]: Leaving directory /home/zhenghao/share/go_project/src/5gc/vendor/github.com/intel-go/nff-go/dpdk'
make -C test
make[1]: Entering directory /home/zhenghao/share/go_project/src/5gc/vendor/github.com/intel-go/nff-go/test' make -C stability make[2]: Entering directory /home/zhenghao/share/go_project/src/5gc/vendor/github.com/intel-go/nff-go/test/stability'
make -C testMerge
Checking for AVX support... AVX and AVX2
make[3]: Entering directory `/home/zhenghao/share/go_project/src/5gc/vendor/github.com/intel-go/nff-go/test/stability/testMerge'
go build -tags "" testMerge.go

5gc/vendor/github.com/intel-go/nff-go/internal/low

../../../internal/low/low.go:754:9: could not determine kind of name for C.create_ip_frag_death_row_table
make[3]: *** [testMerge] Error 2
make[3]: Leaving directory /home/zhenghao/share/go_project/src/5gc/vendor/github.com/intel-go/nff-go/test/stability/testMerge' make[2]: *** [testMerge] Error 2 make[2]: Leaving directory /home/zhenghao/share/go_project/src/5gc/vendor/github.com/intel-go/nff-go/test/stability'
make[1]: *** [stability] Error 2
make[1]: Leaving directory `/home/zhenghao/share/go_project/src/5gc/vendor/github.com/intel-go/nff-go/test'
make: *** [test] Error 2

pealse help me !
thank you!

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

1 participant