1. 30 Jun, 2018 17 commits
  2. 29 Jun, 2018 5 commits
  3. 28 Jun, 2018 15 commits
  4. 27 Jun, 2018 3 commits
    • Chengguang Xu's avatar
      nfp: cast sizeof() to int when comparing with error code · 2d259571
      Chengguang Xu authored
      sizeof() will return unsigned value so in the error check
      negative error code will be always larger than sizeof().
      
      Fixes: a0d8e02c ("nfp: add support for reading nffw info")
      Signed-off-by: default avatarChengguang Xu <cgxu519@gmx.com>
      Acked-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      2d259571
    • David S. Miller's avatar
      Merge branch 'nfp-MPLS-and-shared-blocks-TC-offload-fixes' · f3c2c5eb
      David S. Miller authored
      Jakub Kicinski says:
      
      ====================
      nfp: MPLS and shared blocks TC offload fixes
      
      This series brings two fixes to TC filter/action offload code.
      Pieter fixes matching MPLS packets when the match is purely on
      the MPLS ethertype and none of the MPLS fields are used.
      John provides a fix for offload of shared blocks.  Unfortunately,
      with shared blocks there is currently no guarantee that filters
      which were added by the core will be removed before block unbind.
      Our simple fix is to not support offload of rules on shared blocks
      at all, a revert of this fix will be send for -next once the
      reoffload infrastructure lands.  The shared blocks became important
      as we are trying to use them for bonding offload (managed from user
      space) and lack of remove calls leads to resource leaks.
      
      v2:
       - fix build error reported by kbuild bot due to missing
         tcf_block_shared() helper.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      f3c2c5eb
    • John Hurley's avatar
      nfp: reject binding to shared blocks · 951a8ee6
      John Hurley authored
      TC shared blocks allow multiple qdiscs to be grouped together and filters
      shared between them. Currently the chains of filters attached to a block
      are only flushed when the block is removed. If a qdisc is removed from a
      block but the block still exists, flow del messages are not passed to the
      callback registered for that qdisc. For the NFP, this presents the
      possibility of rules still existing in hw when they should be removed.
      
      Prevent binding to shared blocks until the kernel can send per qdisc del
      messages when block unbinds occur.
      
      tcf_block_shared() was not used outside of the core until now, so also
      add an empty implementation for builds with CONFIG_NET_CLS=n.
      
      Fixes: 48617387 ("net: sched: introduce shared filter blocks infrastructure")
      Signed-off-by: default avatarJohn Hurley <john.hurley@netronome.com>
      Signed-off-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
      Reviewed-by: default avatarSimon Horman <simon.horman@netronome.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      951a8ee6