1. 12 Sep, 2018 14 commits
  2. 10 Sep, 2018 21 commits
  3. 08 Sep, 2018 5 commits
    • YueHaibing's avatar
      failover: Fix error return code in net_failover_create · 09317da3
      YueHaibing authored
      if failover_register failed, 'err' code should be set correctly
      
      Fixes: cfc80d9a ("net: Introduce net_failover driver")
      Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      09317da3
    • Jose Abreu's avatar
      net: stmmac: Enable TC Ops for GMAC >= 4 · cc577b01
      Jose Abreu authored
      GMAC >= 4 also supports CBS. Lets enable the TC Ops for these versions.
      Signed-off-by: default avatarJose Abreu <joabreu@synopsys.com>
      Cc: David S. Miller <davem@davemloft.net>
      Cc: Joao Pinto <jpinto@synopsys.com>
      Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
      Cc: Alexandre Torgue <alexandre.torgue@st.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      cc577b01
    • Vlad Buslov's avatar
      net: sched: act_nat: remove dependency on rtnl lock · f20a4d01
      Vlad Buslov authored
      According to the new locking rule, we have to take tcf_lock for both
      ->init() and ->dump(), as RTNL will be removed.
      
      Use tcf spinlock to protect private nat action data from concurrent
      modification during dump. (nat init already uses tcf spinlock when changing
      action state)
      Signed-off-by: default avatarVlad Buslov <vladbu@mellanox.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      f20a4d01
    • Vlad Buslov's avatar
      net: sched: act_skbedit: remove dependency on rtnl lock · 6d7a8df6
      Vlad Buslov authored
      According to the new locking rule, we have to take tcf_lock for both
      ->init() and ->dump(), as RTNL will be removed.
      
      Use tcf lock to protect skbedit action struct private data from concurrent
      modification in init and dump. Use rcu swap operation to reassign params
      pointer under protection of tcf lock. (old params value is not used by
      init, so there is no need of standalone rcu dereference step)
      
      Remove rtnl lock assertion that is no longer required.
      Signed-off-by: default avatarVlad Buslov <vladbu@mellanox.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      6d7a8df6
    • Jacob Keller's avatar
      i40e(vf): remove i40e_ethtool_stats.h header file · 6ad96bdc
      Jacob Keller authored
      Essentially reverts commit 8fd75c58 ("i40e: move ethtool
      stats boiler plate code to i40e_ethtool_stats.h", 2018-08-30), and
      additionally moves the similar code in i40evf into i40evf_ethtool.c.
      
      The code was intially moved from i40e_ethtool.c into i40e_ethtool_stats.h
      as a way of better logically organizing the code. This has two problems.
      First, we can't have an inline function with variadic arguments on all
      platforms. Second, it gave the appearance that we had plans to share
      code between the i40e and i40evf drivers, due to having a near copy of
      the contents in the i40evf/i40e_ethtool_stats.h file.
      
      Patches which actually attempt to combine or share code between the i40e
      and i40evf drivers have not materialized, and are likely a ways off.
      
      Rather than fixing the one function which causes build issues, just move
      this code back into the i40e_ethtool.c and i40evf_ethtool.c files. Note
      that we also change these functions back from static inlines to just
      statics, since they're no longer in a header file.
      
      We can revisit this if/when work is done to actually attempt to share
      code between drivers. Alternatively, this stats code could be made more
      generic so that it can be shared across drivers as part of ethtool
      kernel work.
      Signed-off-by: default avatarJacob Keller <jacob.e.keller@intel.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      6ad96bdc