1. 23 1月, 2018 2 次提交
    • L
      net: fec: add necessary defines to work on ARM64 · 3f1dcc6a
      Lucas Stach 提交于
      The i.MX8 is a ARMv8 based SoC, that uses the same FEC IP as the
      earlier, ARMv7 based, i.MX SoCs. Allow the driver to work on ARM64.
      Signed-off-by: NLucas Stach <l.stach@pengutronix.de>
      Acked-by: NFugang Duan <fugang.duan@nxp.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3f1dcc6a
    • T
      virtio_net: Add ethtool stats · d7dfc5cf
      Toshiaki Makita 提交于
      The main purpose of this patch is adding a way of checking per-queue stats.
      It's useful to debug performance problems on multiqueue environment.
      
      $ ethtool -S ens10
      NIC statistics:
           rx_queue_0_packets: 2090408
           rx_queue_0_bytes: 3164825094
           rx_queue_1_packets: 2082531
           rx_queue_1_bytes: 3152932314
           tx_queue_0_packets: 2770841
           tx_queue_0_bytes: 4194955474
           tx_queue_1_packets: 3084697
           tx_queue_1_bytes: 4670196372
      
      This change converts existing per-cpu stats structure into per-queue one.
      This should not impact on performance since each queue counter is not
      updated concurrently by multiple cpus.
      
      Performance numbers:
       - Guest has 2 vcpus and 2 queues
       - Guest runs netserver
       - Host runs 100-flow super_netperf
      
                           Before      After       Diff
      UDP_STREAM 18byte        86.22       87.00   +0.90%
      UDP_STREAM 1472byte    4055.27     4042.18   -0.32%
      TCP_STREAM            16956.32    16890.63   -0.39%
      UDP_RR               178667.11   185862.70   +4.03%
      TCP_RR               128473.04   124985.81   -2.71%
      Signed-off-by: NToshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d7dfc5cf
  2. 22 1月, 2018 38 次提交