1. 16 4月, 2019 1 次提交
    • J
      nfp: flower: allow offloading of matches on 'internal' ports · 4d12ba42
      John Hurley 提交于
      Recent FW modifications allow the offloading of non repr ports. These
      ports exist internally on the NFP. So if a rule outputs to an 'internal'
      port, then the packet will recirculate back into the system but will now
      have this internal port as it's incoming port. These ports are indicated
      by a specific type field combined with an 8 bit port id.
      
      Add private app data to assign additional port ids for use in offloads.
      Provide functions to lookup or create new ids when a rule attempts to
      match on an internal netdev - the only internal netdevs currently
      supported are of type openvswitch. Have a netdev notifier to release
      port ids on netdev unregister.
      
      OvS offloads rules that match on internal ports as TC egress filters.
      Ensure that such rules are accepted by the driver.
      Signed-off-by: NJohn Hurley <john.hurley@netronome.com>
      Signed-off-by: NSimon Horman <simon.horman@netronome.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4d12ba42
  2. 23 3月, 2019 2 次提交
  3. 13 2月, 2019 1 次提交
  4. 07 2月, 2019 2 次提交
  5. 18 12月, 2018 1 次提交
    • J
      nfp: flower: fix cb_ident duplicate in indirect block register · b12c97d4
      John Hurley 提交于
      Previously the identifier used for indirect block callback registry and
      for block rule cb registry (when done via indirect blocks) was the pointer
      to the netdev we were interested in receiving updates on. This worked fine
      if a single app existed that registered one callback per netdev of
      interest. However, if multiple cards are in place and, in turn, multiple
      apps, then each app may register the same callback with the same
      identifier to both the netdev's indirect block cb list and to a block's cb
      list. This can lead to EEXIST errors and/or incorrect cb deletions.
      
      Prevent this conflict by using the app pointer as the identifier for
      netdev indirect block cb registry, allowing each app to register a unique
      callback per netdev. For block cb registry, the same app may register
      multiple cbs to the same block if using TC shared blocks. Instead of the
      app, use the pointer to the allocated cb_priv data as the identifier here.
      This means that there can be a unique block callback for each app/netdev
      combo.
      
      Fixes: 3166dd07 ("nfp: flower: offload tunnel decap rules via indirect TC blocks")
      Reported-by: NEdward Cree <ecree@solarflare.com>
      Signed-off-by: NJohn Hurley <john.hurley@netronome.com>
      Reviewed-by: NJakub Kicinski <jakub.kicinski@netronome.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b12c97d4
  6. 11 12月, 2018 1 次提交
  7. 01 12月, 2018 2 次提交
  8. 12 11月, 2018 4 次提交
  9. 12 10月, 2018 1 次提交
  10. 11 10月, 2018 2 次提交
  11. 13 9月, 2018 1 次提交
  12. 08 8月, 2018 2 次提交
  13. 23 7月, 2018 1 次提交
  14. 27 6月, 2018 2 次提交
  15. 26 6月, 2018 1 次提交
  16. 25 6月, 2018 1 次提交
  17. 25 5月, 2018 1 次提交
  18. 26 4月, 2018 2 次提交
  19. 27 3月, 2018 1 次提交
  20. 17 2月, 2018 1 次提交
  21. 08 2月, 2018 1 次提交
  22. 26 1月, 2018 1 次提交
  23. 20 12月, 2017 1 次提交
  24. 12 12月, 2017 2 次提交
  25. 21 11月, 2017 1 次提交
  26. 17 11月, 2017 2 次提交
  27. 02 11月, 2017 2 次提交