1. 06 8月, 2008 3 次提交
    • R
      pktgen: mac count · ff2a79a5
      Robert Olsson 提交于
      dst_mac_count and src_mac_count patch from Eneas Hunguana
      We have sent one mac address to much.
      Signed-off-by: NRobert Olsson <robert.olsson@its.uu.se>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ff2a79a5
    • R
      pktgen: random flow · 1211a645
      Robert Olsson 提交于
      Random flow generation has not worked. This fixes it.
      Signed-off-by: NRobert Olsson <robert.olsson@its.uu.se>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1211a645
    • S
      bridge: Eliminate unnecessary forward delay · ef647f13
      Stephen Hemminger 提交于
      From: Stephen Hemminger <shemminger@vyatta.com>
      
      Based upon original patch by Herbert Xu, which contained
      the following problem description:
      
      --------------------
      When the forward delay is set to zero, we still delay the setting
      of the forwarding state by one or possibly two timers depending
      on whether STP is enabled.  This could either turn out to be
      instantaneous, or horribly slow depending on the load of the
      machine.
      
      As there is nothing preventing us from enabling forwarding straight
      away, this patch eliminates this potential delay by executing the
      code directly if the forward delay is zero.
      
      The effect of this problem is that immediately after the carrier
      comes on a port, the bridge will drop all packets received from
      that port until it enters forwarding mode, thus causing unnecessary
      packet loss.
      
      Note that this patch doesn't fully remove the delay due to the
      link watcher.  We should also check the carrier state when we
      are about to drop an incoming packet because the port is disabled.
      But that's for another patch.
      --------------------
      
      This version of the fix takes a different approach, in that
      it just does the state change directly.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ef647f13
  2. 05 8月, 2008 34 次提交
  3. 04 8月, 2008 3 次提交
    • S
      net: eliminate refcounting in backlog queue · 6e583ce5
      Stephen Hemminger 提交于
      Avoid the overhead of atomic increment/decrement on each received packet.
      This helps performance of non-NAPI devices (like loopback).
      Use cleanup function to walk queue on each cpu and clean out any
      left over packets.
      Signed-off-by: NStephen Hemminger <shemminger@vyatta.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6e583ce5
    • W
      ipv6: Do not drop packet if skb->local_df is set to true · 283d07ac
      Wei Yongjun 提交于
      The old code will drop IPv6 packet if ipfragok is not set, since
      ipfragok is obsoleted, will be instead by used skb->local_df, so this
      check must be changed to skb->local_df.
      
      This patch fix this problem and not drop packet if skb->local_df is
      set to true.
      Signed-off-by: NWei Yongjun <yjwei@cn.fujitsu.com>
      Acked-by: NHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      283d07ac
    • H
      sctp: Drop ipfargok in sctp_xmit function · f880374c
      Herbert Xu 提交于
      The ipfragok flag controls whether the packet may be fragmented
      either on the local host on beyond.  The latter is only valid on
      IPv4.
      
      In fact, we never want to do the latter even on IPv4 when PMTU is
      enabled.  This is because even though we can't fragment packets
      within SCTP due to the prtocol's inherent faults, we can still
      fragment it at IP layer.  By setting the DF bit we will improve
      the PMTU process.
      
      RFC 2960 only says that we SHOULD clear the DF bit in this case,
      so we're compliant even if we set the DF bit.  In fact RFC 4960
      no longer has this statement.
      
      Once we make this change, we only need to control the local
      fragmentation.  There is already a bit in the skb which controls
      that, local_df.  So this patch sets that instead of using the
      ipfragok argument.
      
      The only complication is that there isn't a struct sock object
      per transport, so for IPv4 we have to resort to changing the
      pmtudisc field for every packet.  This should be safe though
      as the protocol is single-threaded.
      
      Note that after this patch we can remove ipfragok from the rest
      of the stack too.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f880374c