1. 01 1月, 2014 3 次提交
    • D
      Merge branch 'tun_rfs' · 71a1d9ee
      David S. Miller 提交于
      Zhi Yong Wu says:
      
      ====================
      tun: add the RFS support
      
      Since Tom Herbert's hash related patchset was modified and got merged,
      his pachset about adding support for RFS on tun flows also need to get
      adjusted accordingly. I tried to update them, and before i will start
      to do some perf tests, i hope to get one correct code base, so it's time
      to post them out now. Any constructive comments are welcome, thanks.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      71a1d9ee
    • T
      tun: Add support for RFS on tun flows · 9bc88939
      Tom Herbert 提交于
      This patch adds support so that the rps_flow_tables (RFS) can be
      programmed using the tun flows which are already set up to track flows
      for the purposes of queue selection.
      
      On the receive path (corresponding to select_queue and tun_net_xmit) the
      rxhash is saved in the flow_entry.  The original code only does flow
      lookup in select_queue, so this patch adds a flow lookup in tun_net_xmit
      if num_queues == 1 (select_queue is not called from
      dev_queue_xmit->netdev_pick_tx in that case).
      
      The flow is recorded (processing CPU) in tun_flow_update (TX path), and
      reset when flow is deleted.
      Signed-off-by: NTom Herbert <therbert@google.com>
      Signed-off-by: NZhi Yong Wu <wuzhy@linux.vnet.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      9bc88939
    • T
      net: Allow setting sock flow hash without a sock · fe477558
      Tom Herbert 提交于
      This patch adds sock_rps_record_flow_hash and sock_rps_reset_flow_hash
      which take a hash value as an argument and sets the sock_flow_table
      accordingly.  This allows the table to be populated in cases where flow
      is being tracked outside of a sock structure.
      
      sock_rps_record_flow and sock_rps_reset_flow call this function
      where the hash is taken from sk_rxhash.
      Signed-off-by: NTom Herbert <therbert@google.com>
      Signed-off-by: NZhi Yong Wu <wuzhy@linux.vnet.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      fe477558
  2. 31 12月, 2013 3 次提交
  3. 30 12月, 2013 3 次提交
  4. 29 12月, 2013 6 次提交
  5. 28 12月, 2013 6 次提交
  6. 27 12月, 2013 19 次提交