Skip to contentSkip to conversation

selftests/tc-testings cgroup.json test failed

DISCUSSION Hangbin Liu 2 participants 3 messages Jun 7, 2023 – Jun 8, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi Zhengchao,

I tried run cgroup.json (and flow.json) with linux 6.3 and iproute 6.3. But almost test failed. e.g.

All test results:

1..56
not ok 1 6273 - Add cgroup filter with cmp ematch u8/link layer and drop action
Could not match regex pattern. Verify command output:
filter protocol ip pref 1 cgroup chain 0
filter protocol ip pref 1 cgroup chain 0 handle 0x1
action order 1: gact action drop
random type none pass val 0
index 1 ref 1 bind 1

not ok 2 4721 - Add cgroup filter with cmp ematch u8/link layer with trans flag and pass action
Could not match regex pattern. Verify command output:
filter protocol ip pref 1 cgroup chain 0
filter protocol ip pref 1 cgroup chain 0 handle 0x1
action order 1: gact action pass
random type none pass val 0
index 1 ref 1 bind 1

I saw the matchPattern checks ".*cmp..." which is not exist with my tc output.

"matchPattern": "^filter protocol ip pref [0-9]+ cgroup chain [0-9]+.*handle 0x1.*cmp\\(u8 at 0 layer 0 mask 0xff gt 10\\)",

So which tc version are you using? Am I missed something?

Thanks
Hangbin

#1 lore raw
Quoted 26 lines · Hangbin Liu

Hi Zhengchao,

I tried run cgroup.json (and flow.json) with linux 6.3 and iproute 6.3. But almost test failed. e.g.

All test results:

1..56
not ok 1 6273 - Add cgroup filter with cmp ematch u8/link layer and drop action
Could not match regex pattern. Verify command output:
filter protocol ip pref 1 cgroup chain 0
filter protocol ip pref 1 cgroup chain 0 handle 0x1
action order 1: gact action drop
random type none pass val 0
index 1 ref 1 bind 1

not ok 2 4721 - Add cgroup filter with cmp ematch u8/link layer with trans flag and pass action
Could not match regex pattern. Verify command output:
filter protocol ip pref 1 cgroup chain 0
filter protocol ip pref 1 cgroup chain 0 handle 0x1
action order 1: gact action pass
random type none pass val 0
index 1 ref 1 bind 1

Quoted 6 lines

I saw the matchPattern checks ".*cmp..." which is not exist with my tc output.

"matchPattern": "^filter protocol ip pref [0-9]+ cgroup chain [0-9]+.*handle 0x1.*cmp\\(u8 at 0 layer 0 mask 0xff gt 10\\)",

So which tc version are you using? Am I missed something?

Hi Hangbin:
I upgraded iproute to 6.3.0 locally, and these test cases are
successfully executed. My kernel version is 6.4.0 and OS version is ubuntu 1804 LTS. I am wondering if it had something to do with the OS?

Zhengchao Shao

Quoted 2 lines

Thanks
Hangbin

#2 lore raw
Quoted 10 lines · shaozhengchao
Quoted 6 lines

I saw the matchPattern checks ".*cmp..." which is not exist with my tc output.

"matchPattern": "^filter protocol ip pref [0-9]+ cgroup chain [0-9]+.*handle 0x1.*cmp\\(u8 at 0 layer 0 mask 0xff gt 10\\)",

So which tc version are you using? Am I missed something?

Hi Hangbin:
I upgraded iproute to 6.3.0 locally, and these test cases are
successfully executed. My kernel version is 6.4.0 and OS version is ubuntu 1804 LTS. I am wondering if it had something to do with the OS?

Ah, I checked the source code and found my OS didn't enable CONFIG_NET_EMATCH_CMP.

Thanks
Hangbin