1. 25 8月, 2016 8 次提交
  2. 24 8月, 2016 12 次提交
  3. 23 8月, 2016 12 次提交
  4. 22 8月, 2016 1 次提交
  5. 21 8月, 2016 1 次提交
  6. 20 8月, 2016 6 次提交
    • S
      vmxnet3: fix tx data ring copy for variable size · ff2e7d5d
      Shrikrishna Khare 提交于
      'Commit 3c8b3efc ("vmxnet3: allow variable length transmit data ring
      buffer")' changed the size of the buffers in the tx data ring from a
      fixed size of 128 bytes to a variable size.
      
      However, while copying data to the data ring, vmxnet3_copy_hdr continues
      to carry the old code that assumes fixed buffer size of 128. This patch
      fixes it by adding correct offset based on the actual data ring buffer
      size.
      Signed-off-by: NGuolin Yang <gyang@vmware.com>
      Signed-off-by: NShrikrishna Khare <skhare@vmware.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ff2e7d5d
    • A
      ixgbe: Do not clear RAR entry when clearing VMDq for SAN MAC · c10ac75a
      Alexander Duyck 提交于
      The RAR entry for the SAN MAC address was being cleared when we were
      clearing the VMDq pool bits.  In order to prevent this we need to add
      an extra check to protect the SAN MAC from being cleared.
      
      Fixes: 6e982aea ("ixgbe: Clear stale pool mappings")
      Signed-off-by: NAlexander Duyck <alexander.h.duyck@intel.com>
      Tested-by: NAndrew Bowers <andrewx.bowers@intel.com>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c10ac75a
    • J
      mlxsw: spectrum_buffers: Fix pool value handling in mlxsw_sp_sb_tc_pool_bind_set · 8912862f
      Jiri Pirko 提交于
      Pool index has to be converted by get_pool helper to work correctly for
      egress pool. In mlxsw the egress pool index starts from 0.
      
      Fixes: 0f433fa0 ("mlxsw: spectrum_buffers: Implement shared buffer configuration")
      Signed-off-by: NJiri Pirko <jiri@mellanox.com>
      Reviewed-by: NIdo Schimmel <idosch@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8912862f
    • G
      l2tp: Fix the connect status check in pppol2tp_getname · 56cff471
      Gao Feng 提交于
      The sk->sk_state is bits flag, so need use bit operation check
      instead of value check.
      Signed-off-by: NGao Feng <fgao@ikuai8.com>
      Tested-by: NGuillaume Nault <g.nault@alphalink.fr>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      56cff471
    • M
      sctp: linearize early if it's not GSO · 4c2f2454
      Marcelo Ricardo Leitner 提交于
      Because otherwise when crc computation is still needed it's way more
      expensive than on a linear buffer to the point that it affects
      performance.
      
      It's so expensive that netperf test gives a perf output as below:
      
      Overhead  Command         Shared Object       Symbol
        18,62%  netserver       [kernel.vmlinux]    [k] crc32_generic_shift
         2,57%  netserver       [kernel.vmlinux]    [k] __pskb_pull_tail
         1,94%  netserver       [kernel.vmlinux]    [k] fib_table_lookup
         1,90%  netserver       [kernel.vmlinux]    [k] copy_user_enhanced_fast_string
         1,66%  swapper         [kernel.vmlinux]    [k] intel_idle
         1,63%  netserver       [kernel.vmlinux]    [k] _raw_spin_lock
         1,59%  netserver       [sctp]              [k] sctp_packet_transmit
         1,55%  netserver       [kernel.vmlinux]    [k] memcpy_erms
         1,42%  netserver       [sctp]              [k] sctp_rcv
      
      # netperf -H 192.168.10.1 -l 10 -t SCTP_STREAM -cC -- -m 12000
      SCTP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.10.1 () port 0 AF_INET
      Recv   Send    Send                          Utilization       Service Demand
      Socket Socket  Message  Elapsed              Send     Recv     Send    Recv
      Size   Size    Size     Time     Throughput  local    remote   local   remote
      bytes  bytes   bytes    secs.    10^6bits/s  % S      % S      us/KB   us/KB
      
      212992 212992  12000    10.00      3016.42   2.88     3.78     1.874   2.462
      
      After patch:
      Overhead  Command         Shared Object      Symbol
         2,75%  netserver       [kernel.vmlinux]   [k] memcpy_erms
         2,63%  netserver       [kernel.vmlinux]   [k] copy_user_enhanced_fast_string
         2,39%  netserver       [kernel.vmlinux]   [k] fib_table_lookup
         2,04%  netserver       [kernel.vmlinux]   [k] __pskb_pull_tail
         1,91%  netserver       [kernel.vmlinux]   [k] _raw_spin_lock
         1,91%  netserver       [sctp]             [k] sctp_packet_transmit
         1,72%  netserver       [mlx4_en]          [k] mlx4_en_process_rx_cq
         1,68%  netserver       [sctp]             [k] sctp_rcv
      
      # netperf -H 192.168.10.1 -l 10 -t SCTP_STREAM -cC -- -m 12000
      SCTP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.10.1 () port 0 AF_INET
      Recv   Send    Send                          Utilization       Service Demand
      Socket Socket  Message  Elapsed              Send     Recv     Send    Recv
      Size   Size    Size     Time     Throughput  local    remote   local   remote
      bytes  bytes   bytes    secs.    10^6bits/s  % S      % S      us/KB   us/KB
      
      212992 212992  12000    10.00      3681.77   3.83     3.46     2.045   1.849
      
      Fixes: 3acb50c1 ("sctp: delay as much as possible skb_linearize")
      Signed-off-by: NMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4c2f2454
    • D
      Merge branch 'mlx5-fixes' · 187335cd
      David S. Miller 提交于
      Saeed Mahameed says:
      
      ====================
      Mellanox 100G mlx5 fixes 2016-08-16
      
      This series includes some bug fixes for mlx5e driver.
      
      From Saeed and Tariq, Optimize MTU change to not reset when it is not required.
      
      From Paul, Command interface message length check to speedup firmware
      command preparation.
      
      From Mohamad, Save pci state when pci error is detected.
      
      From Amir, Flow counters "lastuse" update fix.
      
      From Hadar, Use correct flow dissector key on flower offloading.
      Plus a small optimization for switchdev hardware id query.
      
      From Or, three patches to address some E-Switch offloads issues.
      
      For -stable of 4.6.y and 4.7.y:
          net/mlx5e: Use correct flow dissector key on flower offloading
          net/mlx5: Fix pci error recovery flow
          net/mlx5: Added missing check of msg length in verifying its signature
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      187335cd