-
Notifications
You must be signed in to change notification settings - Fork 757
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
Add Matchall filter #311
Add Matchall filter #311
Conversation
Thanks.
After that, if possible, please add a test in |
@aboch It appears updated. |
@@ -168,13 +168,13 @@ func TestAdvancedFilterAddDel(t *testing.T) { | |||
} | |||
|
|||
u32SelKeys := []TcU32Key{ | |||
TcU32Key{ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes were made by gofmt, I can split it out into another PR, or a different commit
filter_test.go
Outdated
} | ||
|
||
func TestFilterClsActBpfAddDel(t *testing.T) { | ||
tearDown := setUpNetlinkTest(t) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I no longer have a 3.10 kernel VM at hand to check this, but I am assuming this test would fail on older kernel.
Can you please add the call
minKernelRequired(t, x, y)
at the beginning of this test function, and move the same call at line 572 to the top of the new test function.
Thanks
@aboch updated. |
tearDown := setUpNetlinkTest(t) | ||
defer tearDown() | ||
if err := LinkAdd(&Ifb{LinkAttrs{Name: "foo"}}); err != nil { | ||
func setupLinkForTestWithQdisc(t *testing.T, linkName string) (Qdisc, Link) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Thanks @sargun |
No description provided.