1. 02 7月, 2017 38 次提交
  2. 01 7月, 2017 2 次提交
    • D
      Merge branch 'nfp-introduce-flower-offload-capabilities' · 13834451
      David S. Miller 提交于
      Simon Horman says:
      
      ====================
      nfp: introduce flower offload capabilities
      
      this series adds flower offload to the NFP driver. It builds on recent
      work to add representor and a skeleton flower app - now the app does what
      its name says.
      
      In general the approach taken is to allow some flows within
      the universe of possible flower matches and tc actions to be offloaded.
      It is planned that this support will grow over time but the support
      offered by this patch-set seems to be a reasonable starting point.
      
      Key Changes since v2:
      * Revised flow structures to simplify setup/teardown and locking of stats
      * Addressed other code-change review of v2
      
      Other review questions regarding v2 have been answered on netdev.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      13834451
    • P
      nfp: add control message passing capabilities to flower offloads · 81f3ddf2
      Pieter Jansen van Vuuren 提交于
      Previously the flower offloads never sends messages to the hardware,
      and never registers a handler for receiving messages from hardware.
      This patch enables the flower offloads to send control messages to
      hardware when adding and removing flow rules. Additionally it
      registers a control message rx handler for receiving stats updates
      from hardware for each offloaded flow.
      
      Additionally this patch adds 4 control message types; Add, modify and
      delete flow, as well as flow stats. It also allows
      nfp_flower_cmsg_get_data() to be used outside of cmsg.c.
      Signed-off-by: NPieter Jansen van Vuuren <pieter.jansenvanvuuren@netronome.com>
      Signed-off-by: NSimon Horman <simon.horman@netronome.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      81f3ddf2