1. 26 6月, 2014 1 次提交
    • G
      lib: crc32: Greatly shrink CRC combining code · 6d514b4e
      George Spelvin 提交于
      There's no need for a full 32x32 matrix, when rows before the last are
      just shifted copies of the rows after them.
      
      There's still room for improvement (especially on X86 processors with
      CRC32 and PCLMUL instructions), but this is a large step in the
      right direction [which is in particular useful for its current user,
      namely SCTP checksumming over multiple skb frags[] entries, i.e. in
      IPVS balancing when other CRC32 offloads are not available].
      
      The internal primitive is now called crc32_generic_shift and takes one
      less argument; the XOR with crc2 is done in inline wrappers.
      Signed-off-by: NGeorge Spelvin <linux@horizon.com>
      Signed-off-by: NDaniel Borkmann <dborkman@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6d514b4e
  2. 12 6月, 2014 1 次提交
    • A
      cpumask: Utility function to set n'th cpu - local cpu first · da91309e
      Amir Vadai 提交于
      This function sets the n'th cpu - local cpu's first.
      For example: in a 16 cores server with even cpu's local, will get the
      following values:
      cpumask_set_cpu_local_first(0, numa, cpumask) => cpu 0 is set
      cpumask_set_cpu_local_first(1, numa, cpumask) => cpu 2 is set
      ...
      cpumask_set_cpu_local_first(7, numa, cpumask) => cpu 14 is set
      cpumask_set_cpu_local_first(8, numa, cpumask) => cpu 1 is set
      cpumask_set_cpu_local_first(9, numa, cpumask) => cpu 3 is set
      ...
      cpumask_set_cpu_local_first(15, numa, cpumask) => cpu 15 is set
      
      Curently this function will be used by multi queue networking devices to
      calculate the irq affinity mask, such that as many local cpu's as
      possible will be utilized to handle the mq device irq's.
      Signed-off-by: NAmir Vadai <amirv@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      da91309e
  3. 11 6月, 2014 1 次提交
  4. 07 6月, 2014 7 次提交
  5. 05 6月, 2014 23 次提交
  6. 03 6月, 2014 2 次提交
  7. 02 6月, 2014 4 次提交
  8. 31 5月, 2014 1 次提交