1. 27 5月, 2017 2 次提交
    • I
      mlxsw: spectrum: Introduce Port-VLAN structure · 31a08a52
      Ido Schimmel 提交于
      This is the first step in the transition from the vPort model to a
      unified Port-VLAN structure. The new structure is defined and created /
      destroyed upon invocation of the 8021q ndos, but it's not actually used
      throughout the code.
      
      Subsequent patches will initialize it correctly and also create /
      destroy it upon switchdev's VLAN object.
      Signed-off-by: NIdo Schimmel <idosch@mellanox.com>
      Signed-off-by: NJiri Pirko <jiri@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      31a08a52
    • I
      mlxsw: spectrum: Set port's mode according to FID mappings · 4aafc368
      Ido Schimmel 提交于
      We currently transition the port to "Virtual mode" upon the creation of
      its first VLAN upper, as we need to classify incoming packets to a FID
      using {Port, VID} and not only the VID.
      
      However, it's more appropriate to transition the port to this mode when
      the {Port, VID} are actually mapped to a FID. Either during the
      enslavement of the VLAN upper to a VLAN-unaware bridge or the
      configuration of a router port.
      
      Do this change now in preparation for the introduction of the FID core,
      where this operation will be encapsulated.
      
      To prevent regressions, this patch also explicitly configures an OVS
      slave to "Virtual mode". Otherwise, a packet that didn't hit an ACL rule
      could be classified to an existing FID based on a global VID-to-FID
      mapping, thus not incurring a FID mis-classification, which would
      otherwise trap the packet to the CPU to be processed by the OVS daemon.
      Signed-off-by: NIdo Schimmel <idosch@mellanox.com>
      Signed-off-by: NJiri Pirko <jiri@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4aafc368
  2. 26 5月, 2017 8 次提交
  3. 25 5月, 2017 3 次提交
  4. 22 5月, 2017 1 次提交
  5. 19 5月, 2017 1 次提交
  6. 18 5月, 2017 16 次提交
  7. 17 5月, 2017 1 次提交
    • A
      mlx5e: add CONFIG_INET dependency · 2432a3fb
      Arnd Bergmann 提交于
      We now reference the arp_tbl, which requires IPv4 support to be
      enabled in the kernel, otherwise we get a link error:
      
      drivers/net/built-in.o: In function `mlx5e_tc_update_neigh_used_value':
      (.text+0x16afec): undefined reference to `arp_tbl'
      drivers/net/built-in.o: In function `mlx5e_rep_neigh_init':
      en_rep.c:(.text+0x16c16d): undefined reference to `arp_tbl'
      drivers/net/built-in.o: In function `mlx5e_rep_netevent_event':
      en_rep.c:(.text+0x16cbb5): undefined reference to `arp_tbl'
      
      This adds a Kconfig dependency for it.
      
      Fixes: 232c0013 ("net/mlx5e: Add support to neighbour update flow")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2432a3fb
  8. 16 5月, 2017 1 次提交
  9. 14 5月, 2017 7 次提交