All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net 0/7] mlxsw: Various fixes
@ 2019-06-11  7:19 Ido Schimmel
  2019-06-11  7:19 ` [PATCH net 1/7] mlxsw: spectrum: Use different seeds for ECMP and LAG hash Ido Schimmel
                   ` (7 more replies)
  0 siblings, 8 replies; 11+ messages in thread
From: Ido Schimmel @ 2019-06-11  7:19 UTC (permalink / raw
  To: netdev; +Cc: davem, jiri, petrm, alexpe, mlxsw, Ido Schimmel

From: Ido Schimmel <idosch@mellanox.com>

This patchset contains various fixes for mlxsw.

Patch #1 fixes an hash polarization problem when a nexthop device is a
LAG device. This is caused by the fact that the same seed is used for
the LAG and ECMP hash functions.

Patch #2 fixes an issue in which the driver fails to refresh a nexthop
neighbour after it becomes dead. This prevents the nexthop from ever
being written to the adjacency table and used to forward traffic. Patch
#3 is a test case.

Patch #4 fixes a wrong extraction of TOS value in flower offload code.
Patch #5 is a test case.

Patch #6 works around a buffer issue in Spectrum-2 by reducing the
default sizes of the shared buffer pools.

Patch #7 prevents prio-tagged packets from entering the switch when PVID
is removed from the bridge port.

Please consider patches #2, #4 and #6 for 5.1.y

Ido Schimmel (4):
  mlxsw: spectrum: Use different seeds for ECMP and LAG hash
  mlxsw: spectrum_router: Refresh nexthop neighbour when it becomes dead
  selftests: mlxsw: Test nexthop offload indication
  mlxsw: spectrum: Disallow prio-tagged packets when PVID is removed

Jiri Pirko (2):
  mlxsw: spectrum_flower: Fix TOS matching
  selftests: tc_flower: Add TOS matching test

Petr Machata (1):
  mlxsw: spectrum_buffers: Reduce pool size on Spectrum-2

 drivers/net/ethernet/mellanox/mlxsw/reg.h     |  2 +-
 .../net/ethernet/mellanox/mlxsw/spectrum.c    |  5 +-
 .../mellanox/mlxsw/spectrum_buffers.c         |  4 +-
 .../ethernet/mellanox/mlxsw/spectrum_flower.c |  4 +-
 .../ethernet/mellanox/mlxsw/spectrum_router.c | 73 ++++++++++++++++++-
 .../selftests/drivers/net/mlxsw/rtnetlink.sh  | 47 ++++++++++++
 .../selftests/net/forwarding/tc_flower.sh     | 36 ++++++++-
 7 files changed, 161 insertions(+), 10 deletions(-)

-- 
2.20.1


^ permalink raw reply	[flat|nested] 11+ messages in thread
* [PATCH net 0/7] mlxsw: Various fixes
@ 2019-04-10  6:58 Ido Schimmel
  2019-04-10 18:58 ` David Miller
  0 siblings, 1 reply; 11+ messages in thread
From: Ido Schimmel @ 2019-04-10  6:58 UTC (permalink / raw
  To: netdev@vger.kernel.org
  Cc: davem@davemloft.net, Jiri Pirko, mlxsw, Ido Schimmel

This patchset contains various small fixes for mlxsw.

Patch #1 fixes a warning generated by switchdev core when the driver
fails to insert an MDB entry in the commit phase.

Patches #2-#4 fix a warning in check_flush_dependency() that can be
triggered when a work item in a WQ_MEM_RECLAIM workqueue tries to flush
a non-WQ_MEM_RECLAIM workqueue.

It seems that the semantics of the WQ_MEM_RECLAIM flag are not very
clear [1] and that various patches have been sent to remove it from
various workqueues throughout the kernel [2][3][4] in order to silence
the warning.

These patches do the same for the workqueues created by mlxsw that
probably should not have been created with this flag in the first place.

Patch #5 fixes a regression where an IP address cannot be assigned to a
VRF upper due to erroneous MAC validation check. Patch #6 adds a test
case.

Patch #7 adjusts Spectrum-2 shared buffer configuration to be compatible
with Spectrum-1. The problem and fix are described in detail in the
commit message.

Please consider patches #1-#5 for 5.0.y. I verified they apply cleanly.

[1] https://patchwork.kernel.org/patch/10791315/
[2] Commit ce162bfbc0b6 ("mac80211_hwsim: don't use WQ_MEM_RECLAIM")
[3] Commit 39baf10310e6 ("IB/core: Fix use workqueue without WQ_MEM_RECLAIM")
[4] Commit 75215e5bb22c ("iwcm: Don't allocate iwcm workqueue with WQ_MEM_RECLAIM")

Ido Schimmel (7):
  mlxsw: spectrum_switchdev: Add MDB entries in prepare phase
  mlxsw: core: Do not use WQ_MEM_RECLAIM for EMAD workqueue
  mlxsw: core: Do not use WQ_MEM_RECLAIM for mlxsw ordered workqueue
  mlxsw: core: Do not use WQ_MEM_RECLAIM for mlxsw workqueue
  mlxsw: spectrum_router: Do not check VRF MAC address
  selftests: mlxsw: Test VRF MAC vetoing
  mlxsw: spectrum_buffers: Add a multicast pool for Spectrum-2

 drivers/net/ethernet/mellanox/mlxsw/core.c    |  6 +++---
 .../mellanox/mlxsw/spectrum_buffers.c         | 19 ++++++++++--------
 .../ethernet/mellanox/mlxsw/spectrum_router.c |  2 +-
 .../mellanox/mlxsw/spectrum_switchdev.c       |  2 +-
 .../selftests/drivers/net/mlxsw/rtnetlink.sh  | 20 +++++++++++++++++++
 5 files changed, 36 insertions(+), 13 deletions(-)

-- 
2.20.1


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

end of thread, other threads:[~2019-06-12 18:08 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-11  7:19 [PATCH net 0/7] mlxsw: Various fixes Ido Schimmel
2019-06-11  7:19 ` [PATCH net 1/7] mlxsw: spectrum: Use different seeds for ECMP and LAG hash Ido Schimmel
2019-06-11  7:19 ` [PATCH net 2/7] mlxsw: spectrum_router: Refresh nexthop neighbour when it becomes dead Ido Schimmel
2019-06-11  7:19 ` [PATCH net 3/7] selftests: mlxsw: Test nexthop offload indication Ido Schimmel
2019-06-11  7:19 ` [PATCH net 4/7] mlxsw: spectrum_flower: Fix TOS matching Ido Schimmel
2019-06-11  7:19 ` [PATCH net 5/7] selftests: tc_flower: Add TOS matching test Ido Schimmel
2019-06-11  7:19 ` [PATCH net 6/7] mlxsw: spectrum_buffers: Reduce pool size on Spectrum-2 Ido Schimmel
2019-06-11  7:19 ` [PATCH net 7/7] mlxsw: spectrum: Disallow prio-tagged packets when PVID is removed Ido Schimmel
2019-06-12 18:08 ` [PATCH net 0/7] mlxsw: Various fixes David Miller
  -- strict thread matches above, loose matches on Subject: below --
2019-04-10  6:58 Ido Schimmel
2019-04-10 18:58 ` 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.