All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] mlxsw: selftests: Few small updates
@ 2018-10-08 18:50 Ido Schimmel
  2018-10-08 18:50 ` [PATCH net-next 1/3] mlxsw: pci: Fix a typo Ido Schimmel
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Ido Schimmel @ 2018-10-08 18:50 UTC (permalink / raw)
  To: netdev; +Cc: davem, Jiri Pirko, Petr Machata, Nir Dotan, Ido Schimmel

First patch fixes a typo in mlxsw.

Second patch fixes a race in a recent test.

Third patch makes a recent test executable.

Nir Dotan (1):
  mlxsw: pci: Fix a typo

Petr Machata (2):
  selftests: forwarding: Have lldpad_app_wait_set() wait for unknown,
    too
  selftests: mlxsw: qos_mc_aware: Make executable

 drivers/net/ethernet/mellanox/mlxsw/pci_hw.h              | 2 +-
 tools/testing/selftests/drivers/net/mlxsw/qos_mc_aware.sh | 0
 tools/testing/selftests/net/forwarding/lib.sh             | 2 +-
 3 files changed, 2 insertions(+), 2 deletions(-)
 mode change 100644 => 100755 tools/testing/selftests/drivers/net/mlxsw/qos_mc_aware.sh

-- 
2.17.1

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH net-next 1/3] mlxsw: pci: Fix a typo
  2018-10-08 18:50 [PATCH net-next 0/3] mlxsw: selftests: Few small updates Ido Schimmel
@ 2018-10-08 18:50 ` Ido Schimmel
  2018-10-08 18:50 ` [PATCH net-next 2/3] selftests: forwarding: Have lldpad_app_wait_set() wait for unknown, too Ido Schimmel
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Ido Schimmel @ 2018-10-08 18:50 UTC (permalink / raw)
  To: netdev; +Cc: davem, Jiri Pirko, Petr Machata, Nir Dotan, Ido Schimmel

From: Nir Dotan <nird@mellanox.com>

Signed-off-by: Nir Dotan <nird@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
---
 drivers/net/ethernet/mellanox/mlxsw/pci_hw.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/mellanox/mlxsw/pci_hw.h b/drivers/net/ethernet/mellanox/mlxsw/pci_hw.h
index 83f452b7ccbb..bb99f6d41fe0 100644
--- a/drivers/net/ethernet/mellanox/mlxsw/pci_hw.h
+++ b/drivers/net/ethernet/mellanox/mlxsw/pci_hw.h
@@ -221,7 +221,7 @@ MLXSW_ITEM32(pci, eqe, event_type, 0x0C, 24, 8);
 MLXSW_ITEM32(pci, eqe, event_sub_type, 0x0C, 16, 8);
 
 /* pci_eqe_cqn
- * Completion Queue that triggeret this EQE.
+ * Completion Queue that triggered this EQE.
  */
 MLXSW_ITEM32(pci, eqe, cqn, 0x0C, 8, 7);
 
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH net-next 2/3] selftests: forwarding: Have lldpad_app_wait_set() wait for unknown, too
  2018-10-08 18:50 [PATCH net-next 0/3] mlxsw: selftests: Few small updates Ido Schimmel
  2018-10-08 18:50 ` [PATCH net-next 1/3] mlxsw: pci: Fix a typo Ido Schimmel
@ 2018-10-08 18:50 ` Ido Schimmel
  2018-10-08 18:50 ` [PATCH net-next 3/3] selftests: mlxsw: qos_mc_aware: Make executable Ido Schimmel
  2018-10-11  5:23 ` [PATCH net-next 0/3] mlxsw: selftests: Few small updates David Miller
  3 siblings, 0 replies; 5+ messages in thread
From: Ido Schimmel @ 2018-10-08 18:50 UTC (permalink / raw)
  To: netdev; +Cc: davem, Jiri Pirko, Petr Machata, Nir Dotan, Ido Schimmel

From: Petr Machata <petrm@mellanox.com>

Immediately after mlxsw module is probed and lldpad started, added APP
entries are briefly in "unknown" state before becoming "pending". That's
the state that lldpad_app_wait_set() typically sees, and since there are
no pending entries at that time, it bails out. However the entries have
not been pushed to the kernel yet at that point, and thus the test case
fails.

Fix by waiting for both unknown and pending entries to disappear before
proceeding.

Fixes: d159261f3662 ("selftests: mlxsw: Add test for trust-DSCP")
Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
---
 tools/testing/selftests/net/forwarding/lib.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/net/forwarding/lib.sh b/tools/testing/selftests/net/forwarding/lib.sh
index 0e73698b2048..85d253546684 100644
--- a/tools/testing/selftests/net/forwarding/lib.sh
+++ b/tools/testing/selftests/net/forwarding/lib.sh
@@ -251,7 +251,7 @@ lldpad_app_wait_set()
 {
 	local dev=$1; shift
 
-	while lldptool -t -i $dev -V APP -c app | grep -q pending; do
+	while lldptool -t -i $dev -V APP -c app | grep -Eq "pending|unknown"; do
 		echo "$dev: waiting for lldpad to push pending APP updates"
 		sleep 5
 	done
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH net-next 3/3] selftests: mlxsw: qos_mc_aware: Make executable
  2018-10-08 18:50 [PATCH net-next 0/3] mlxsw: selftests: Few small updates Ido Schimmel
  2018-10-08 18:50 ` [PATCH net-next 1/3] mlxsw: pci: Fix a typo Ido Schimmel
  2018-10-08 18:50 ` [PATCH net-next 2/3] selftests: forwarding: Have lldpad_app_wait_set() wait for unknown, too Ido Schimmel
@ 2018-10-08 18:50 ` Ido Schimmel
  2018-10-11  5:23 ` [PATCH net-next 0/3] mlxsw: selftests: Few small updates David Miller
  3 siblings, 0 replies; 5+ messages in thread
From: Ido Schimmel @ 2018-10-08 18:50 UTC (permalink / raw)
  To: netdev; +Cc: davem, Jiri Pirko, Petr Machata, Nir Dotan, Ido Schimmel

From: Petr Machata <petrm@mellanox.com>

This is a self-standing test and as such should be itself executable.

Fixes: b5638d46c90a ("selftests: mlxsw: Add a test for UC behavior under MC flood")
Signed-off-by: Petr Machata <petrm@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
---
 tools/testing/selftests/drivers/net/mlxsw/qos_mc_aware.sh | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 mode change 100644 => 100755 tools/testing/selftests/drivers/net/mlxsw/qos_mc_aware.sh

diff --git a/tools/testing/selftests/drivers/net/mlxsw/qos_mc_aware.sh b/tools/testing/selftests/drivers/net/mlxsw/qos_mc_aware.sh
old mode 100644
new mode 100755
-- 
2.17.1

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH net-next 0/3] mlxsw: selftests: Few small updates
  2018-10-08 18:50 [PATCH net-next 0/3] mlxsw: selftests: Few small updates Ido Schimmel
                   ` (2 preceding siblings ...)
  2018-10-08 18:50 ` [PATCH net-next 3/3] selftests: mlxsw: qos_mc_aware: Make executable Ido Schimmel
@ 2018-10-11  5:23 ` David Miller
  3 siblings, 0 replies; 5+ messages in thread
From: David Miller @ 2018-10-11  5:23 UTC (permalink / raw)
  To: idosch; +Cc: netdev, jiri, petrm, nird

From: Ido Schimmel <idosch@mellanox.com>
Date: Mon, 8 Oct 2018 18:50:38 +0000

> First patch fixes a typo in mlxsw.
> 
> Second patch fixes a race in a recent test.
> 
> Third patch makes a recent test executable.

Series applied, thanks Ido.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-10-11 12:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-08 18:50 [PATCH net-next 0/3] mlxsw: selftests: Few small updates Ido Schimmel
2018-10-08 18:50 ` [PATCH net-next 1/3] mlxsw: pci: Fix a typo Ido Schimmel
2018-10-08 18:50 ` [PATCH net-next 2/3] selftests: forwarding: Have lldpad_app_wait_set() wait for unknown, too Ido Schimmel
2018-10-08 18:50 ` [PATCH net-next 3/3] selftests: mlxsw: qos_mc_aware: Make executable Ido Schimmel
2018-10-11  5:23 ` [PATCH net-next 0/3] mlxsw: selftests: Few small updates David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.