1. 20 Aug, 2016 34 commits
  2. 19 Aug, 2016 6 commits
    • oulijun's avatar
      net: hns: Add reset function support for RoCE driver · e0180688
      oulijun authored
      It added reset function for RoCE driver. RoCE is a feature of hns.
      In hip06 SoC, in RoCE reset process, it's needed to configure dsaf
      channel reset, port and sl map info. Reset function of RoCE is
      located in dsaf module, we only call it in RoCE driver when needed.
      
      This patch is used to fix the conflict, please refer to this link:
        https://www.spinics.net/lists/linux-rdma/msg39114.htmlSigned-off-by: default avatarWei Hu <xavier.huwei@huawei.com>
      Signed-off-by: default avatarNenglong Zhao <zhaonenglong@hisilicon.com>
      Signed-off-by: default avatarLijun Ou <oulijun@huawei.com>
      Signed-off-by: default avatarSheng Li <lisheng011@huawei.com>
      Reviewed-by: default avatarYisen Zhuang <yisen.zhuang@huawei.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      e0180688
    • David S. Miller's avatar
      Merge branch 'rhash-raw-walkers-remove-part-1' · a68d5398
      David S. Miller authored
      Herbert Xu says:
      
      ====================
      rhashtable: Get rid of raw table walkers part 1
      
      This series starts the process of getting rid of all raw rhashtable
      walkers (e.g., using any of the rht_for_each helpers) from the
      kernel.
      
      We need to do this before I can fix the resize kmalloc failure issue
      by using multi-layered tables.
      
      We should do this anyway because almost all raw table walkers are
      already buggy in that they don't handle multiple rhashtables during
      a resize.
      ====================
      
      Dave/Tomas, please keep an eye out for any new patches that try
      to introduce raw table walkers and nack them.
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a68d5398
    • Herbert Xu's avatar
      netlink: Use rhashtable walk interface in diag dump · ad202074
      Herbert Xu authored
      This patch converts the diag dumping code to use the rhashtable
      walk code instead of going through rhashtable by hand.  The lock
      nl_table_lock is now only taken while we process the multicast
      list as it's not needed for the rhashtable walk.
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      ad202074
    • Herbert Xu's avatar
      MAINTAINERS: Add extra rhashtable maintainer · 39ec406d
      Herbert Xu authored
      As I'm working actively on rhashtable it helps if people CCed me
      when they work on in.
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      Acked-by: default avatarThomas Graf <tgraf@suug.ch>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      39ec406d
    • Herbert Xu's avatar
      rhashtable: Remove GFP flag from rhashtable_walk_init · 246779dd
      Herbert Xu authored
      The commit 8f6fd83c ("rhashtable:
      accept GFP flags in rhashtable_walk_init") added a GFP flag argument
      to rhashtable_walk_init because some users wish to use the walker
      in an unsleepable context.
      
      In fact we don't need to allocate memory in rhashtable_walk_init
      at all.  The walker is always paired with an iterator so we could
      just stash ourselves there.
      
      This patch does that by introducing a new enter function to replace
      the existing init function.  This way we don't have to churn all
      the existing users again.
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      246779dd
    • David S. Miller's avatar
      Merge branch 'cxgb-crypto' · 363dc396
      David S. Miller authored
      Hariprasad Shenai says:
      
      ====================
      crypto/chcr: Add support for Chelsio Crypto Driver
      
      This patch series adds support for Chelsio Crypto driver.
      
      The patch series has been created against net-next tree and includes
      patches for Chelsio Low Level Driver(cxgb4) and adds the new crypto
      Upper Layer Driver(chcr) under a new directory drivers/crypto/chelsio.
      
      Patch 1/4 ("cxgb4: Add support for dynamic allocation of resources for
      ULD") adds support for dynamic allocation of resources for ULD. The
      objective of this patch is to provide generic interface for upper layer
      drivers to allocate and initialize hardware resources.
      
      The present cxgb4 (network driver) apart from network functionality, also
      initializes hardware and thus acts as lower layer driver for other drivers
      to use hardware resources. Thus it acts as both a Low level driver for
      Upper layer driver's like iw_cxgb4, cxgb4i and cxgb4it and a Network Driver.
      
      Right now the allocation of resources for Upper layer driver's is done
      statically. Patch 1/4 adds a new infrastructure for dynamic allocation of
      resources. cxgb4 will read the hardware capability through firmware and
      allocate/free the queues for Upper layer drivers when the respective
      driver's are loaded and freed when unloaded.
      
      Patch 2/3, 3/4 and 4/4 adds support for Chelsio Crypto Driver. The Crypto
      driver will act as another ULD on top of cxgb4.
      
      In this patch series, the ULD API framework is used only by crypto and other
      ULD's will make use of it in the next series.
      
      This patch series is only for review, if this looks ok we will test it
      thoroughly and send request for merge.
      
      We have included all the maintainers of respective drivers. Kindly
      review the changes and provide feedback on the same.
      
      V3: - Removed crypto queues from cxgb4 and added support for dynamic
            allocation of resources for Upper layer drivers
          - Dependency fix in Kconfig.
      
      V2: - Some residual code cleanup
          - Adds pr_fmt with chcr (KBUILD_MODNAME) added
          - Changes var name to accomodate them <80 columns in the chcr_register_alg
          - Support for printing the crypto queue stats
          - Fix compile warnings reported by kbuild bot for certain architectures
          - Dependency fix in Kconfig.
          - If the request has the MAY_BACKLOG bit set and hardware queue is
            full the request is queued up else -EBUSY is returned to throttle
            the user. The queue when executed and processed returns -EINPROGRESS
            in completion.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      363dc396