1. 23 10月, 2008 1 次提交
    • H
      net: Fix disjunct computation of netdev features · b63365a2
      Herbert Xu 提交于
      My change
      
          commit e2a6b852
          net: Enable TSO if supported by at least one device
      
      didn't do what was intended because the netdev_compute_features
      function was designed for conjunctions.  So what happened was that
      it would simply take the TSO status of the last constituent device.
      
      This patch extends it to support both conjunctions and disjunctions
      under the new name of netdev_increment_features.
      
      It also adds a new function netdev_fix_features which does the
      sanity checking that usually occurs upon registration.  This ensures
      that the computation doesn't result in an illegal combination
      since this checking is absent when the change is initiated via
      ethtool.
      
      The two users of netdev_compute_features have been converted.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b63365a2
  2. 20 10月, 2008 1 次提交
  3. 17 10月, 2008 1 次提交
  4. 15 10月, 2008 1 次提交
    • P
      netfilter: fix ebtables dependencies · 129404a1
      Patrick McHardy 提交于
      Ingo Molnar reported a build error with ebtables:
      
      ERROR: "ebt_register_table" [net/bridge/netfilter/ebtable_filter.ko] undefined!
      ERROR: "ebt_do_table" [net/bridge/netfilter/ebtable_filter.ko] undefined!
      ERROR: "ebt_unregister_table" [net/bridge/netfilter/ebtable_filter.ko] undefined!
      ERROR: "ebt_register_table" [net/bridge/netfilter/ebtable_broute.ko] undefined!
      ERROR: "ebt_do_table" [net/bridge/netfilter/ebtable_broute.ko] undefined!
      ERROR: "ebt_unregister_table" [net/bridge/netfilter/ebtable_broute.ko] undefined!
      make[1]: *** [__modpost] Error 1
      make: *** [modules] Error 2
      
      This reason is a missing dependencies that got lost during Kconfig cleanups.
      Restore it.
      Tested-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NPatrick McHardy <kaber@trash.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      129404a1
  5. 08 10月, 2008 24 次提交
  6. 09 9月, 2008 3 次提交
  7. 16 8月, 2008 1 次提交
  8. 06 8月, 2008 1 次提交
    • 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
  9. 05 8月, 2008 1 次提交
  10. 31 7月, 2008 1 次提交
    • S
      bridge: send correct MTU value in PMTU (revised) · 4adf0af6
      Simon Wunderlich 提交于
      When bridging interfaces with different MTUs, the bridge correctly chooses
      the minimum of the MTUs of the physical devices as the bridges MTU.  But
      when a frame is passed which fits through the incoming, but not through
      the outgoing interface, a "Fragmentation Needed" packet is generated.
      
      However, the propagated MTU is hardcoded to 1500, which is wrong in this
      situation.  The sender will repeat the packet again with the same frame
      size, and the same problem will occur again.
      
      Instead of sending 1500, the (correct) MTU value of the bridge is now sent
      via PMTU.  To achieve this, the corresponding rtable structure is stored
      in its net_bridge structure.
      
      Modified to get rid of fake_net_device as well.
      Signed-off-by: NSimon Wunderlich <siwu@hrz.tu-chemnitz.de>
      Signed-off-by: NStephen Hemminger <shemminger@linux-foundation.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4adf0af6
  11. 27 7月, 2008 1 次提交
  12. 20 7月, 2008 1 次提交
  13. 15 7月, 2008 1 次提交
  14. 08 7月, 2008 1 次提交
  15. 06 7月, 2008 1 次提交