]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'mlxsw-dedicated-router-notification-block'
authorDavid S. Miller <davem@davemloft.net>
Sun, 8 May 2022 10:46:21 +0000 (11:46 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 8 May 2022 10:46:21 +0000 (11:46 +0100)
commitfb15d7af3c8c6ad7858fd0dc0bac11feff7e0e12
tree89f81ff2571c38ba7ff307672efb63dba29aca73
parent83ae3a38fde5ba4c6b28d76c059d9cd90a3b36ed
parent3966b383bf0dac76ad33bebadbdd4ad7c027b7cb
Merge branch 'mlxsw-dedicated-router-notification-block'

Ido Schimmel says:

====================
mlxsw: A dedicated notifier block for router code

Petr says:

Currently all netdevice events are handled in the centralized notifier
handler maintained by spectrum.c. Since a number of events are involving
router code, spectrum.c needs to dispatch them to spectrum_router.c. The
spectrum module therefore needs to know more about the router code than it
should have, and there is are several API points through which the two
modules communicate.

In this patchset, move bulk of the router-related event handling to the
router code. Some of the knowledge has to stay: spectrum.c cannot veto
events that the router supports, and vice versa. But beyond that, the two
can ignore each other's details, which leads to more focused and simpler
code.

As a side effect, this fixes L3 HW stats support on tunnel netdevices.

The patch set progresses as follows:

- In patch #1, change spectrum code to not bounce L3 enslavement, which the
  router code supports.

- In patch #2, add a new do-nothing notifier block to the router code.

- In patches #3-#6, move router-specific event handling to the router
  module. In patch #7, clean up a comment.

- In patch #8, use the advantage that all router event handling is in the
  router code and clean up taking router lock.

- mlxsw supports L3 HW stats on tunnels as of this patchset. Patches #9 and
  #10 therefore add a selftest for L3 HW stats support on tunnels.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>