1. 22 11月, 2018 10 次提交
  2. 21 11月, 2018 28 次提交
  3. 20 11月, 2018 2 次提交
    • D
      Merge branch 'gred-add-offload-support' · 6133e78f
      David S. Miller 提交于
      Jakub Kicinski says:
      
      ====================
      gred: add offload support
      
      This series adds support for GRED offload in the nfp driver.  So
      far we have only supported the RED Qdisc offload, but we need a
      way to differentiate traffic types e.g. based on DSCP marking.
      
      It may seem like PRIO+RED is a good match for this job, however,
      (a) we don't need strict priority behaviour of PRIO, and (b) PRIO
      uses the legacy way of mapping ToS fields to bands, which is quite
      awkward and limitting.
      
      The less commonly used GRED Qdisc is a better much for the scenario,
      it allows multiple sets of RED parameters and queue lengths to be
      maintained with a single FIFO queue.  This is exactly how nfp offload
      behaves.  We use a trivial u32 classifier to assign packets to virtual
      queues.
      
      There is also the minor advantage that GRED can't have its child
      changed, therefore limitting ways in which the configuration of SW
      path can diverge from HW offload.
      
      Last patch of the series adds support for (G)RED in non-ECN mode,
      where packets are dropped instead of marked.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6133e78f
    • J
      nfp: abm: add support for more threshold actions · 340a4864
      Jakub Kicinski 提交于
      Original FW only allowed us to perform ECN marking.  Newer releases
      also support plain old drop.  Add the ability to configure drop
      policy.  This is particularly useful in combination with GRED,
      because different bands can have different ECN marking setting.
      Signed-off-by: NJakub Kicinski <jakub.kicinski@netronome.com>
      Reviewed-by: NJohn Hurley <john.hurley@netronome.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      340a4864