1. 18 Jan, 2019 35 commits
  2. 17 Jan, 2019 5 commits
    • Peter Oskolkov's avatar
      net: add a route cache full diagnostic message · 22c2ad61
      Peter Oskolkov authored
      In some testing scenarios, dst/route cache can fill up so quickly
      that even an explicit GC call occasionally fails to clean it up. This leads
      to sporadically failing calls to dst_alloc and "network unreachable" errors
      to the user, which is confusing.
      
      This patch adds a diagnostic message to make the cause of the failure
      easier to determine.
      Signed-off-by: default avatarPeter Oskolkov <posk@google.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      22c2ad61
    • Ioana Ciocoi Radulescu's avatar
      dpaa2-eth: Fix ndo_stop routine · 68d74315
      Ioana Ciocoi Radulescu authored
      In the current implementation, on interface down we disabled NAPI and
      then manually drained any remaining ingress frames. This could lead
      to a situation when, under heavy traffic, the data availability
      notification for some of the channels would not get rearmed correctly.
      
      Change the implementation such that we let all remaining ingress frames
      be processed as usual and only disable NAPI once the hardware queues
      are empty.
      
      We also add a wait on the Tx side, to allow hardware time to process
      all in-flight Tx frames before issueing the disable command.
      Signed-off-by: default avatarIoana Radulescu <ruxandra.radulescu@nxp.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      68d74315
    • Colin Ian King's avatar
      wan: dscc4: fix various indentation issues · 5191673b
      Colin Ian King authored
      There are some lines that have indentation issues, fix these.
      Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      5191673b
    • David S. Miller's avatar
      Merge branch 'vxlan-FDB-veto' · 039d52e1
      David S. Miller authored
      Petr Machata says:
      
      ====================
      vxlan: Allow vetoing FDB operations
      
      mlxsw does not implement handling of the more advanced types of VXLAN
      FDB entries. In order to provide visibility to users, it is important to
      be able to reject such FDB entries, ideally with an explanation passed
      in extended ack. This patch set implements this.
      
      In patches #1-#4, vxlan is gradually transformed to support vetoing of
      FDB entries added (or modified) through vxlan_fdb_update(), and the
      default FDB entry added in __vxlan_dev_create().
      
      Patches #5-#7 deal with vxlan_changelink(). The existing code recognizes
      that vxlan_fdb_update() may fail, but doesn't attempt to keep things
      intact if it does. These patches change the function in several steps to
      gracefully handle vetoes (or other failures).
      
      Then in patches #8-#11, extack arguments are added, respectively, to
      ndo_fdb_add(), mlxsw's mlxsw_sp_nve_ops.fdb_replay, the functions that
      connect to the VXLAN vetoing code, and call_switchdev_notifiers(). Note
      that call_switchdev_blocking_notifiers() already does support extack.
      
      Finally in patch #12, mlxsw is extended to add extack messages to
      rejected FDB entries. In patch #13, the functionality is tested.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      039d52e1
    • Petr Machata's avatar
      selftests: mlxsw: Test veto of unsupported VXLAN FDBs · 7e1046fd
      Petr Machata authored
      mlxsw doesn't implement offloading of all types of FDB entries that the
      VXLAN driver supports. Test that such FDB entries are rejected. That
      makes sure that the decision made by the existing validation code in
      mlxsw propagates up the stack. It also exercises rollback functionality
      in VXLAN, and tests that extack is returned.
      Signed-off-by: default avatarPetr Machata <petrm@mellanox.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      7e1046fd