1. 14 5月, 2011 4 次提交
  2. 13 5月, 2011 4 次提交
  3. 12 5月, 2011 5 次提交
  4. 11 5月, 2011 2 次提交
  5. 10 5月, 2011 22 次提交
  6. 09 5月, 2011 2 次提交
    • M
      net: Allow ethtool to set interface in loopback mode. · eed2a12f
      Mahesh Bandewar 提交于
      This patch enables ethtool to set the loopback mode on a given interface.
      By configuring the interface in loopback mode in conjunction with a policy
      route / rule, a userland application can stress the egress / ingress path
      exposing the flows of the change in progress and potentially help developer(s)
      understand the impact of those changes without even sending a packet out
      on the network.
      
      Following set of commands illustrates one such example -
          a) ip -4 addr add 192.168.1.1/24 dev eth1
          b) ip -4 rule add from all iif eth1 lookup 250
          c) ip -4 route add local 0/0 dev lo proto kernel scope host table 250
          d) arp -Ds 192.168.1.100 eth1
          e) arp -Ds 192.168.1.200 eth1
          f) sysctl -w net.ipv4.ip_nonlocal_bind=1
          g) sysctl -w net.ipv4.conf.all.accept_local=1
          # Assuming that the machine has 8 cores
          h) taskset 000f netserver -L 192.168.1.200
          i) taskset 00f0 netperf -t TCP_CRR -L 192.168.1.100 -H 192.168.1.200 -l 30
      Signed-off-by: NMahesh Bandewar <maheshb@google.com>
      Acked-by: NBen Hutchings <bhutchings@solarflare.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      eed2a12f
    • B
      ipheth: Properly distinguish length and alignment in URBs and skbs · 9c412942
      Ben Hutchings 提交于
      The USB protocol this driver implements appears to require 2 bytes of
      padding in front of each received packet.  This used to be equal to
      the value of NET_IP_ALIGN on x86, so the driver abused that constant
      and mostly worked, but this is no longer the case.  The driver also
      mixed up the URB and packet lengths, resulting in 2 bytes of junk at
      the end of the skb.
      
      Introduce a private constant for the 2 bytes of padding; fix this
      confusion and check for the under-length case.
      Signed-off-by: NBen Hutchings <bhutchings@solarflare.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      9c412942
  7. 08 5月, 2011 1 次提交