Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This branch aims to understand and clean up the work that's gone into merging pflua into Snabb.
It appears that the following work:
What's been done:
4a) cd src
4b) check the default packet filter
NOTE: this is not packet_filter_test, mentioned on Snabb pflua integration dpino/snabb#1
sudo ./snabb snsh -t apps.packet_filter.packet_filter
4c) sudo ./snabb snsh -t apps.packet_filter.packet_filter_benchmark
4d) sudo ./snabb snsh -pflua -t apps.packet_filter.packet_filter_benchmark
Note: 'sudo make test' fails, because src/apps/packet_filter/packet_filter_test.lua is known broken:
"function selftest ()
-- Temporarily disabled:
-- Packet filter selftest is failing in."
Why?
Note:
sudo ./snabb snsh -pflua -t apps.packet_filter.packet_filter
sudo ./snabb snsh -pflua -t apps.packet_filter.packet_filter_test
both fail originally, and the second passes with 0a66ad6.
The first fails with
lib/pcap/pcap.lua:82: undeclared or implicit tag 'pcap_file'
The second originally fails, as it does without -pflua, with:
apps/packet_filter/packet_filter_test.lua:11: module 'core.buffer' not found:
(this is fixed in 0a66ad6).
This error dates back to the second patch in the series:
f2041a7, 'Add new pflua packet filtering application'
Questions:
a) Why isn't pflua set up as a submodule within Snabb? It's under deps, but not a submodule.
b) What's the status of apps/packet_filter/conntrack.lua?
c) Why is packet_filter_test.lua broken without -pflua?