aregm / nff-go

NFF-Go -Network Function Framework for GO (former YANFF)
BSD 3-Clause "New" or "Revised" License
1.38k stars 156 forks source link

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

Closed zh7606559342012 closed 3 years ago

zh7606559342012 commented 3 years ago

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 forall'. 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!