Skip to content
  1. Nov 24, 2018
  2. Nov 23, 2018
  3. Nov 22, 2018
    • David S. Miller's avatar
      Merge branch 'mlxsw-Add-VxLAN-learning-support' · f072df95
      David S. Miller authored
      
      
      Ido Schimmel says:
      
      ====================
      mlxsw: Add VxLAN learning support
      
      This patchset adds VxLAN learning support in the mlxsw driver.
      
      The first five patches from Petr add the required switchdev APIs which
      allow device drivers to notify the VxLAN driver about learned / aged-out
      FDB entries.
      
      First in patch #1, an unnecessary argument is dropped from
      __vxlan_fdb_delete().
      
      In patches #2-#4, the VxLAN FDB handling code is extended to make
      sending the switchdev events configurable; to mark user-added entries as
      such; and to make sure HW-learned FDB entries do not take over
      user-added ones.
      
      Finally in patch #5, the necessary switchdev notifications are added and
      handled by VxLAN, similarly to how this is handled in the bridge driver.
      
      Patch #6 allows changing of the VxLAN's device ageing time since it is
      useful for the selftest in the last patch.
      
      Patch #7 adds support for querying bridge port flags of a given
      netdevice, as a new entry should not be learned and notified to the
      bridge driver in case learning is disabled on the bridge port.
      
      Next patches gradually add learning support in mlxsw.
      
      The last patch adds a new test case for VxLAN learning.
      ====================
      
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      f072df95
    • Ido Schimmel's avatar
      selftests: forwarding: vxlan_bridge_1d: Add learning test · c39c56a8
      Ido Schimmel authored
      
      
      Add a test which checks that the VxLAN driver can learn FDB entries and
      that these entries are correctly deleted and aged-out.
      
      Signed-off-by: default avatarIdo Schimmel <idosch@mellanox.com>
      Reviewed-by: default avatarPetr Machata <petrm@mellanox.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      c39c56a8
    • Ido Schimmel's avatar
      selftests: mlxsw: Consider VxLAN learning enabled as valid · dbd4485a
      Ido Schimmel authored
      
      
      The test currently expects that a configuration which includes a VxLAN
      device with learning enabled to fail.
      
      Previous patches enabled VxLAN learning in mlxsw, so change the test
      accordingly.
      
      Signed-off-by: default avatarIdo Schimmel <idosch@mellanox.com>
      Reviewed-by: default avatarPetr Machata <petrm@mellanox.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      dbd4485a