1. 28 3月, 2018 1 次提交
  2. 27 3月, 2018 4 次提交
  3. 21 2月, 2018 2 次提交
  4. 26 1月, 2018 1 次提交
  5. 20 1月, 2018 6 次提交
  6. 12 1月, 2018 2 次提交
  7. 11 1月, 2018 2 次提交
  8. 06 1月, 2018 1 次提交
    • J
      xdp/mlx5: setup xdp_rxq_info · 0ddf5432
      Jesper Dangaard Brouer 提交于
      The mlx5 driver have a special drop-RQ queue (one per interface) that
      simply drops all incoming traffic. It helps driver keep other HW
      objects (flow steering) alive upon down/up operations.  It is
      temporarily pointed by flow steering objects during the interface
      setup, and when interface is down. It lacks many fields that are set
      in a regular RQ (for example its state is never switched to
      MLX5_RQC_STATE_RDY). (Thanks to Tariq Toukan for explanation).
      
      The XDP RX-queue info for this drop-RQ marked as unused, which
      allow us to use the same takedown/free code path as other RX-queues.
      
      Driver hook points for xdp_rxq_info:
       * reg   : mlx5e_alloc_rq()
       * unused: mlx5e_alloc_drop_rq()
       * unreg : mlx5e_free_rq()
      
      Tested on actual hardware with samples/bpf program
      
      Cc: Saeed Mahameed <saeedm@mellanox.com>
      Cc: Matan Barak <matanb@mellanox.com>
      Cc: Tariq Toukan <tariqt@mellanox.com>
      Signed-off-by: NJesper Dangaard Brouer <brouer@redhat.com>
      Signed-off-by: NAlexei Starovoitov <ast@kernel.org>
      0ddf5432
  9. 20 12月, 2017 3 次提交
    • E
      net/mlx5e: Fix defaulting RX ring size when not needed · 696a97cf
      Eugenia Emantayev 提交于
      Fixes the bug when turning on/off CQE compression mechanism
      resets the RX rings size to default value when it is not
      needed.
      
      Fixes: 2fc4bfb7 ("net/mlx5e: Dynamic RQ type infrastructure")
      Signed-off-by: NEugenia Emantayev <eugenia@mellanox.com>
      Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
      696a97cf
    • G
      net/mlx5e: Fix features check of IPv6 traffic · 2989ad1e
      Gal Pressman 提交于
      The assumption that the next header field contains the transport
      protocol is wrong for IPv6 packets with extension headers.
      Instead, we should look the inner-most next header field in the buffer.
      This will fix TSO offload for tunnels over IPv6 with extension headers.
      
      Performance testing: 19.25x improvement, cool!
      Measuring bandwidth of 16 threads TCP traffic over IPv6 GRE tap.
      CPU: Intel(R) Xeon(R) CPU E5-2660 v2 @ 2.20GHz
      NIC: Mellanox Technologies MT28800 Family [ConnectX-5 Ex]
      TSO: Enabled
      Before: 4,926.24  Mbps
      Now   : 94,827.91 Mbps
      
      Fixes: b3f63c3d ("net/mlx5e: Add netdev support for VXLAN tunneling")
      Signed-off-by: NGal Pressman <galp@mellanox.com>
      Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
      2989ad1e
    • S
      Revert "mlx5: move affinity hints assignments to generic code" · 231243c8
      Saeed Mahameed 提交于
      Before the offending commit, mlx5 core did the IRQ affinity itself,
      and it seems that the new generic code have some drawbacks and one
      of them is the lack for user ability to modify irq affinity after
      the initial affinity values got assigned.
      
      The issue is still being discussed and a solution in the new generic code
      is required, until then we need to revert this patch.
      
      This fixes the following issue:
      echo <new affinity> > /proc/irq/<x>/smp_affinity
      fails with  -EIO
      
      This reverts commit a435393a.
      Note: kept mlx5_get_vector_affinity in include/linux/mlx5/driver.h since
      it is used in mlx5_ib driver.
      
      Fixes: a435393a ("mlx5: move affinity hints assignments to generic code")
      Cc: Sagi Grimberg <sagi@grimberg.me>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Jes Sorensen <jsorensen@fb.com>
      Reported-by: NJes Sorensen <jsorensen@fb.com>
      Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
      231243c8
  10. 03 12月, 2017 1 次提交
  11. 09 11月, 2017 4 次提交
  12. 08 11月, 2017 1 次提交
  13. 05 11月, 2017 5 次提交
  14. 02 11月, 2017 1 次提交
  15. 21 10月, 2017 2 次提交
  16. 15 10月, 2017 1 次提交
  17. 12 10月, 2017 1 次提交
  18. 28 9月, 2017 2 次提交
    • G
      net/mlx5e: Fix calculated checksum offloads counters · 603e1f5b
      Gal Pressman 提交于
      Instead of calculating the offloads counters, count them explicitly.
      The calculations done for these counters would result in bugs in some
      cases, for example:
      When running TCP traffic over a VXLAN tunnel with TSO enabled the following
      counters would increase:
             tx_csum_partial: 1,333,284
             tx_csum_partial_inner: 29,286
             tx4_csum_partial_inner: 384
             tx7_csum_partial_inner: 8
             tx9_csum_partial_inner: 34
             tx10_csum_partial_inner: 26,807
             tx11_csum_partial_inner: 287
             tx12_csum_partial_inner: 27
             tx16_csum_partial_inner: 6
             tx25_csum_partial_inner: 1,733
      
      Seems like tx_csum_partial increased out of nowhere.
      The issue is in the following calculation in mlx5e_update_sw_counters:
      s->tx_csum_partial = s->tx_packets - tx_offload_none - s->tx_csum_partial_inner;
      
      While tx_packets increases by the number of GSO segments for each SKB,
      tx_csum_partial_inner will only increase by one, resulting in wrong
      tx_csum_partial counter.
      
      Fixes: bfe6d8d1 ("net/mlx5e: Reorganize ethtool statistics")
      Signed-off-by: NGal Pressman <galp@mellanox.com>
      Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
      603e1f5b
    • G
      net/mlx5e: Print netdev features correctly in error message · b20eab15
      Gal Pressman 提交于
      Use the correct formatting for netdev features.
      
      Fixes: 0e405443 ("net/mlx5e: Improve set features ndo resiliency")
      Signed-off-by: NGal Pressman <galp@mellanox.com>
      Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
      b20eab15