1. 07 8月, 2018 1 次提交
    • J
      i40e: add helper function for copying strings from stat arrays · 91f06544
      Jacob Keller 提交于
      Many of the ethtool statistics use the same basic logic for copying
      strings into the supplied buffer. A set of stats are stored in a const
      array of i40e_stats structures, and we apply these all together.
      
      Simplify the stats code by introducing a helper function which can take
      a stats array and copy the strings into the buffer, updating the buffer
      pointer as we go.
      
      We use a macro to implement i40e_add_stat_strings so that ARRAY_SIZE can
      be used on the array passed in. This ensures that we always use the
      matching size in __i40e_add_stat_strings.
      
      More complex stats currently do not use i40e_stats arrays, usually due
      to custom formatted strings, or because the stats are not laid out in
      the expected way. These stats will be updated to use the helper function
      in separate future patches.
      Signed-off-by: NJacob Keller <jacob.e.keller@intel.com>
      Tested-by: NAndrew Bowers <andrewx.bowers@intel.com>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      91f06544
  2. 22 5月, 2018 8 次提交
  3. 14 5月, 2018 4 次提交
  4. 01 5月, 2018 2 次提交
  5. 28 4月, 2018 1 次提交
  6. 27 3月, 2018 2 次提交
  7. 24 3月, 2018 1 次提交
  8. 20 3月, 2018 3 次提交
  9. 27 2月, 2018 1 次提交
  10. 14 2月, 2018 1 次提交
  11. 13 2月, 2018 6 次提交
  12. 27 1月, 2018 7 次提交
  13. 11 1月, 2018 1 次提交
  14. 06 1月, 2018 1 次提交
    • J
      i40e: setup xdp_rxq_info · 87128824
      Jesper Dangaard Brouer 提交于
      The i40e driver has a special "FDIR" RX-ring (I40E_VSI_FDIR) which is
      a sideband channel for configuring/updating the flow director tables.
      This (i40e_vsi_)type does not invoke XDP-ebpf code.
      
      As suggested by Björn (V2): Instead of marking this I40E_VSI_FDIR RX-ring
      a special case, reverse the logic and only select RX-rings of type
      I40E_VSI_MAIN to register xdp_rxq_info's for.
      
      Driver hook points for xdp_rxq_info:
       * reg  : i40e_setup_rx_descriptors (via i40e_vsi_setup_rx_resources)
       * unreg: i40e_free_rx_resources    (via i40e_vsi_free_rx_resources)
      
      Tested on actual hardware with samples/bpf program.
      
      V2: Fixed bug in i40e_set_ringparam (memset zero) + match on I40E_VSI_MAIN.
      V4: Update patch desc that got out-of-sync with code.
      
      Cc: intel-wired-lan@lists.osuosl.org
      Cc: Björn Töpel <bjorn.topel@intel.com>
      Cc: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
      Cc: Paul Menzel <pmenzel@molgen.mpg.de>
      Signed-off-by: NJesper Dangaard Brouer <brouer@redhat.com>
      Reviewed-by: NPaul Menzel <pmenzel@molgen.mpg.de>
      Acked-by: NJohn Fastabend <john.fastabend@gmail.com>
      Signed-off-by: NAlexei Starovoitov <ast@kernel.org>
      87128824
  15. 01 11月, 2017 1 次提交