1. 07 11月, 2019 5 次提交
    • S
      ice: add ethtool -m support for reading i2c eeprom modules · a012dca9
      Scott W Taylor 提交于
      Implement ethtool -m support to read eeprom data from SFP/QSFP modules.
      Signed-off-by: NScott W Taylor <scott.w.taylor@intel.com>
      Signed-off-by: NTony Nguyen <anthony.l.nguyen@intel.com>
      Tested-by: NAndrew Bowers <andrewx.bowers@intel.com>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      a012dca9
    • C
      gianfar: Maximize Rx buffer size · a9b97286
      Claudiu Manoil 提交于
      Until now the size of a Rx buffer was artificially limited
      to 1536B (which happens to be the default, after reset, hardware
      value for a Rx buffer). This approach however leaves unused
      memory space for Rx packets, since the driver uses a paged
      allocation scheme that reserves half a page for each Rx skb.
      There's also the inconvenience that frames around 1536 bytes
      can get scattered if the limit is slightly exceeded. This limit
      can be exceeded even for standard MTU of 1500B traffic, for common
      cases like stacked VLANs, or DSA tags.
      To address these issues, let's just compute the buffer size
      starting from the upper limit of 2KB (half a page) and
      subtract the skb overhead and alignment restrictions.
      Signed-off-by: NClaudiu Manoil <claudiu.manoil@nxp.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a9b97286
    • Y
      ehea: replace with page_shift() in ehea_is_hugepage() · 9439bb0f
      Yunfeng Ye 提交于
      The function page_shift() is supported after the commit 94ad9338
      ("mm: introduce page_shift()").
      
      So replace with page_shift() in ehea_is_hugepage() for readability.
      Signed-off-by: NYunfeng Ye <yeyunfeng@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      9439bb0f
    • Z
      net: forcedeth: add xmit_more support · 5d8876e2
      Zhu Yanjun 提交于
      This change adds support for xmit_more based on the igb commit 6f19e12f
      ("igb: flush when in xmit_more mode and under descriptor pressure") and
      commit 6b16f9ee ("net: move skb->xmit_more hint to softnet data") that
      were made to igb to support this feature. The function netif_xmit_stopped
      is called to check whether transmit queue on device is currently unable to
      send to determine whether we must write the tail because we can add no
      further buffers.
      
      When normal packets and/or xmit_more packets fill up tx_desc, it is
      necessary to trigger NIC tx reg.
      
      Following the advice from David Miller and Jakub Kicinski, after the
      xmit_more feature is added, the following scenario will occur.
      
               |
         xmit_more packets
               |
         DMA_MAPPING
               |
         DMA_MAPPING error check
               |
         xmit_more packets already in HW xmit queue
               |
      
      In the above scenario, if DMA_MAPPING error occurrs, the xmit_more packets
      already in HW xmit queue will also be dropped. This is different from the
      behavior before xmit_more feature. So it is necessary to trigger NIC HW tx
      reg in the above scenario.
      
      To the non-xmit_more packets, the above scenario will not occur.
      
      Tested:
        - pktgen (xmit_more packets) SMP x86_64 ->
          Test command:
          ./pktgen_sample03_burst_single_flow.sh ... -b 8 -n 1000000
          Test results:
          Params:
          ...
          burst: 8
          ...
          Result: OK: 12194004(c12188996+d5007) usec, 1000001 (1500byte,0frags)
          82007pps 984Mb/sec (984084000bps) errors: 0
      
        - iperf (normal packets) SMP x86_64 ->
          Test command:
          Server: iperf -s
          Client: iperf -c serverip
          Result:
          TCP window size: 85.0 KByte (default)
          ------------------------------------------------------------
          [ ID] Interval       Transfer     Bandwidth
          [  3]  0.0-10.0 sec  1.10 GBytes   942 Mbits/sec
      
      CC: Joe Jin <joe.jin@oracle.com>
      CC: JUNXIAO_BI <junxiao.bi@oracle.com>
      Reported-and-tested-by: NNan san <nan.1986san@gmail.com>
      Signed-off-by: NZhu Yanjun <yanjun.zhu@oracle.com>
      Acked-by: NJakub Kicinski <jakub.kicinski@netronome.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5d8876e2
    • J
      netdevsim: drop code duplicated by a merge · bfcccfe7
      Jakub Kicinski 提交于
      Looks like the port adding loop makes a re-appearance on net-next
      after net was merged back into it (even though it doesn't feature
      in the merge diff).
      
      The ports are already added in nsim_dev_create() so when we try
      to add them again get EEXIST, and see:
      
      netdevsim: probe of netdevsim0 failed with error -17
      
      in the logs. When we remove the loop again the nsim_dev_probe()
      and nsim_dev_remove() become a wrapper of nsim_dev_create() and
      nsim_dev_destroy(). Remove this layer of indirection.
      
      Fixes: d31e9558 ("Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net")
      Signed-off-by: NJakub Kicinski <jakub.kicinski@netronome.com>
      Acked-by: NJiri Pirko <jiri@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      bfcccfe7
  2. 06 11月, 2019 15 次提交
  3. 05 11月, 2019 20 次提交