如何解决nff-go 数据包重组问题关于 nff-go 如何使用新的 dpdk ip_frag_death_row 结构错误无法确定 C 的名称类型
我使用nff-go
low.go在dpdk low.h中创建了一个新函数,它有一些错误
我发现所有网络都找不到问题的答案
我基于 18.09 dpdk
在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
在低.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;
}
当我在 nff-go 中制作 cmdline 时 它报告担心
[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
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。