diff mbox

[ovs-dev,1/2] tests/system-offloads-traffic.at: add sanity check

Message ID 1502885697-4870-2-git-send-email-roid@mellanox.com
State Changes Requested
Headers show

Commit Message

Roi Dayan Aug. 16, 2017, 12:14 p.m. UTC
Doing dump-flows also altering the netdev ports list.
So doing it pre the actual test is adding a check to
make sure we don't break the that list.

Signed-off-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Paul Blakey <paulb@mellanox.com>
---
 tests/system-offloads-traffic.at | 1 +
 1 file changed, 1 insertion(+)

Comments

Joe Stringer Aug. 16, 2017, 10:17 p.m. UTC | #1
On 16 August 2017 at 05:14, Roi Dayan <roid@mellanox.com> wrote:
> Doing dump-flows also altering the netdev ports list.
> So doing it pre the actual test is adding a check to
> make sure we don't break the that list.
>
> Signed-off-by: Roi Dayan <roid@mellanox.com>
> Reviewed-by: Paul Blakey <paulb@mellanox.com>

I'm actually not sure what the requirements are to run these offload
tests. I tried running them on a 4.4 kernel, and the first test passed
while the second failed; I assume that this is because 4.4's TC flower
support is not new enough.

Then I tried with a 4.12 kernel and neither test passed, and I have
extra flows being reported in the dump-flows output.

I believe that I understand what this patch is trying to achieve, but
I don't know how I'm supposed to validate it.
Roi Dayan Aug. 17, 2017, 5:32 a.m. UTC | #2
On 17/08/2017 01:17, Joe Stringer wrote:
> On 16 August 2017 at 05:14, Roi Dayan <roid@mellanox.com> wrote:
>> Doing dump-flows also altering the netdev ports list.
>> So doing it pre the actual test is adding a check to
>> make sure we don't break the that list.
>>
>> Signed-off-by: Roi Dayan <roid@mellanox.com>
>> Reviewed-by: Paul Blakey <paulb@mellanox.com>
>
> I'm actually not sure what the requirements are to run these offload
> tests. I tried running them on a 4.4 kernel, and the first test passed
> while the second failed; I assume that this is because 4.4's TC flower
> support is not new enough.
>
> Then I tried with a 4.12 kernel and neither test passed, and I have
> extra flows being reported in the dump-flows output.
>
> I believe that I understand what this patch is trying to achieve, but
> I don't know how I'm supposed to validate it.
>

strange. there are no special requirements and this test should work
with kernel 4.10 and up I think.
Without the fix the first pass and the second fails.
With the fix the first and second pass.

I currently I test using kernel 4.13-rc2 and this is my output:


before the fix:


# make check-offloads
..
datapath offloads

   1: offloads - ping between two ports - offloads disabled ok
   2: offloads - ping between two ports - offloads enabled FAILED 
(system-offloads-traffic.at:55)



after the fix:


# make check-offloads
..
datapath offloads

   1: offloads - ping between two ports - offloads disabled ok
   2: offloads - ping between two ports - offloads enabled ok
Roi Dayan Aug. 17, 2017, 7:17 a.m. UTC | #3
On 17/08/2017 08:32, Roi Dayan wrote:
>
>
> On 17/08/2017 01:17, Joe Stringer wrote:
>> On 16 August 2017 at 05:14, Roi Dayan <roid@mellanox.com> wrote:
>>> Doing dump-flows also altering the netdev ports list.
>>> So doing it pre the actual test is adding a check to
>>> make sure we don't break the that list.
>>>
>>> Signed-off-by: Roi Dayan <roid@mellanox.com>
>>> Reviewed-by: Paul Blakey <paulb@mellanox.com>
>>
>> I'm actually not sure what the requirements are to run these offload
>> tests. I tried running them on a 4.4 kernel, and the first test passed
>> while the second failed; I assume that this is because 4.4's TC flower
>> support is not new enough.
>>
>> Then I tried with a 4.12 kernel and neither test passed, and I have
>> extra flows being reported in the dump-flows output.
>>
>> I believe that I understand what this patch is trying to achieve, but
>> I don't know how I'm supposed to validate it.
>>
>

In the past you had an issue that cls_flower was not configured
in your kernel. could be the same issue now?


> strange. there are no special requirements and this test should work
> with kernel 4.10 and up I think.
> Without the fix the first pass and the second fails.
> With the fix the first and second pass.
>
> I currently I test using kernel 4.13-rc2 and this is my output:
>
>
> before the fix:
>
>
> # make check-offloads
> ..
> datapath offloads
>
>   1: offloads - ping between two ports - offloads disabled ok
>   2: offloads - ping between two ports - offloads enabled FAILED
> (system-offloads-traffic.at:55)
>
>
>
> after the fix:
>
>
> # make check-offloads
> ..
> datapath offloads
>
>   1: offloads - ping between two ports - offloads disabled ok
>   2: offloads - ping between two ports - offloads enabled ok
>
Joe Stringer Aug. 17, 2017, 6:07 p.m. UTC | #4
On 17 August 2017 at 00:17, Roi Dayan <roid@mellanox.com> wrote:
>
>
> On 17/08/2017 08:32, Roi Dayan wrote:
>>
>>
>>
>> On 17/08/2017 01:17, Joe Stringer wrote:
>>>
>>> On 16 August 2017 at 05:14, Roi Dayan <roid@mellanox.com> wrote:
>>>>
>>>> Doing dump-flows also altering the netdev ports list.
>>>> So doing it pre the actual test is adding a check to
>>>> make sure we don't break the that list.
>>>>
>>>> Signed-off-by: Roi Dayan <roid@mellanox.com>
>>>> Reviewed-by: Paul Blakey <paulb@mellanox.com>
>>>
>>>
>>> I'm actually not sure what the requirements are to run these offload
>>> tests. I tried running them on a 4.4 kernel, and the first test passed
>>> while the second failed; I assume that this is because 4.4's TC flower
>>> support is not new enough.
>>>
>>> Then I tried with a 4.12 kernel and neither test passed, and I have
>>> extra flows being reported in the dump-flows output.
>>>
>>> I believe that I understand what this patch is trying to achieve, but
>>> I don't know how I'm supposed to validate it.
>>>
>>
>
> In the past you had an issue that cls_flower was not configured
> in your kernel. could be the same issue now?

Maybe it is, I changed which setup I was testing in. I'll double-check.
Joe Stringer Aug. 18, 2017, 9:32 p.m. UTC | #5
On 17 August 2017 at 11:07, Joe Stringer <joe@ovn.org> wrote:
> On 17 August 2017 at 00:17, Roi Dayan <roid@mellanox.com> wrote:
>>
>>
>> On 17/08/2017 08:32, Roi Dayan wrote:
>>>
>>>
>>>
>>> On 17/08/2017 01:17, Joe Stringer wrote:
>>>>
>>>> On 16 August 2017 at 05:14, Roi Dayan <roid@mellanox.com> wrote:
>>>>>
>>>>> Doing dump-flows also altering the netdev ports list.
>>>>> So doing it pre the actual test is adding a check to
>>>>> make sure we don't break the that list.
>>>>>
>>>>> Signed-off-by: Roi Dayan <roid@mellanox.com>
>>>>> Reviewed-by: Paul Blakey <paulb@mellanox.com>
>>>>
>>>>
>>>> I'm actually not sure what the requirements are to run these offload
>>>> tests. I tried running them on a 4.4 kernel, and the first test passed
>>>> while the second failed; I assume that this is because 4.4's TC flower
>>>> support is not new enough.
>>>>
>>>> Then I tried with a 4.12 kernel and neither test passed, and I have
>>>> extra flows being reported in the dump-flows output.
>>>>
>>>> I believe that I understand what this patch is trying to achieve, but
>>>> I don't know how I'm supposed to validate it.
>>>>
>>>
>>
>> In the past you had an issue that cls_flower was not configured
>> in your kernel. could be the same issue now?
>
> Maybe it is, I changed which setup I was testing in. I'll double-check.

Managed to figure it out, looks good. Applied to master.
diff mbox

Patch

diff --git a/tests/system-offloads-traffic.at b/tests/system-offloads-traffic.at
index 7aec8a3..1f80793 100644
--- a/tests/system-offloads-traffic.at
+++ b/tests/system-offloads-traffic.at
@@ -46,6 +46,7 @@  ADD_NAMESPACES(at_ns0, at_ns1)
 
 ADD_VETH(p0, at_ns0, br0, "10.1.1.1/24")
 ADD_VETH(p1, at_ns1, br0, "10.1.1.2/24")
+AT_CHECK([ovs-appctl dpctl/dump-flows], [0], [ignore])
 
 NS_CHECK_EXEC([at_ns0], [ping -q -c 10 -i 0.1 -w 2 10.1.1.2 | FORMAT_PING], [0], [dnl
 10 packets transmitted, 10 received, 0% packet loss, time 0ms