+
Skip to content

Conversation

EaseTheWorld
Copy link
Contributor

No description provided.

For decapsulation, removing a few bytes from head or tail(deps/dpdk/examples/tep_termination/vxlan.c) is faster than
copy whole payloads(Moongen/examples/vxlan-example.lua)
This will help packet decapsulation.
For example, in Moongen/examples/vxlan-example.lua
'get payload size -> ffi.copy -> setSize' will be simply 'removeLast(headerLen)'
Simpler and faster.

I changed the name(adj->removeFirst, trim->removeLast) and ignore return type for simplicity.
@emmericp
Copy link
Member

thanks!

@emmericp emmericp merged commit c19a1d8 into libmoon:master Oct 12, 2018
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

Successfully merging this pull request may close these issues.

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载