1. 03 3月, 2011 3 次提交
  2. 02 3月, 2011 13 次提交
  3. 25 2月, 2011 1 次提交
    • D
      ipv4: Rearrange how ip_route_newports() gets port keys. · dca8b089
      David S. Miller 提交于
      ip_route_newports() is the only place in the entire kernel that
      cares about the port members in the routing cache entry's lookup
      flow key.
      
      Therefore the only reason we store an entire flow inside of the
      struct rtentry is for this one special case.
      
      Rewrite ip_route_newports() such that:
      
      1) The caller passes in the original port values, so we don't need
         to use the rth->fl.fl_ip_{s,d}port values to remember them.
      
      2) The lookup flow is constructed by hand instead of being copied
         from the routing cache entry's flow.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      dca8b089
  4. 24 2月, 2011 2 次提交
  5. 23 2月, 2011 3 次提交
  6. 21 2月, 2011 1 次提交
  7. 20 2月, 2011 1 次提交
    • E
      tcp: fix inet_twsk_deschedule() · 91035f0b
      Eric Dumazet 提交于
      Eric W. Biederman reported a lockdep splat in inet_twsk_deschedule()
      
      This is caused by inet_twsk_purge(), run from process context,
      and commit 575f4cd5 (net: Use rcu lookups in inet_twsk_purge.)
      removed the BH disabling that was necessary.
      
      Add the BH disabling but fine grained, right before calling
      inet_twsk_deschedule(), instead of whole function.
      
      With help from Linus Torvalds and Eric W. Biederman
      Reported-by: NEric W. Biederman <ebiederm@xmission.com>
      Signed-off-by: NEric Dumazet <eric.dumazet@gmail.com>
      CC: Daniel Lezcano <daniel.lezcano@free.fr>
      CC: Pavel Emelyanov <xemul@openvz.org>
      CC: Arnaldo Carvalho de Melo <acme@redhat.com>
      CC: stable <stable@kernel.org> (# 2.6.33+)
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      91035f0b
  8. 19 2月, 2011 3 次提交
  9. 18 2月, 2011 6 次提交
  10. 15 2月, 2011 4 次提交
  11. 12 2月, 2011 1 次提交
  12. 11 2月, 2011 2 次提交
    • D
      inet: Create a mechanism for upward inetpeer propagation into routes. · 6431cbc2
      David S. Miller 提交于
      If we didn't have a routing cache, we would not be able to properly
      propagate certain kinds of dynamic path attributes, for example
      PMTU information and redirects.
      
      The reason is that if we didn't have a routing cache, then there would
      be no way to lookup all of the active cached routes hanging off of
      sockets, tunnels, IPSEC bundles, etc.
      
      Consider the case where we created a cached route, but no inetpeer
      entry existed and also we were not asked to pre-COW the route metrics
      and therefore did not force the creation a new inetpeer entry.
      
      If we later get a PMTU message, or a redirect, and store this
      information in a new inetpeer entry, there is no way to teach that
      cached route about the newly existing inetpeer entry.
      
      The facilities implemented here handle this problem.
      
      First we create a generation ID.  When we create a cached route of any
      kind, we remember the generation ID at the time of attachment.  Any
      time we force-create an inetpeer entry in response to new path
      information, we bump that generation ID.
      
      The dst_ops->check() callback is where the knowledge of this event
      is propagated.  If the global generation ID does not equal the one
      stored in the cached route, and the cached route has not attached
      to an inetpeer yet, we look it up and attach if one is found.  Now
      that we've updated the cached route's information, we update the
      route's generation ID too.
      
      This clears the way for implementing PMTU and redirects directly in
      the inetpeer cache.  There is absolutely no need to consult cached
      route information in order to maintain this information.
      
      At this point nothing bumps the inetpeer genids, that comes in the
      later changes which handle PMTUs and redirects using inetpeers.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6431cbc2
    • D
      inetpeer: Add redirect and PMTU discovery cached info. · ddd4aa42
      David S. Miller 提交于
      Validity of the cached PMTU information is indicated by it's
      expiration value being non-zero, just as per dst->expires.
      
      The scheme we will use is that we will remember the pre-ICMP value
      held in the metrics or route entry, and then at expiration time
      we will restore that value.
      
      In this way PMTU expiration does not kill off the cached route as is
      done currently.
      
      Redirect information is permanent, or at least until another redirect
      is received.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ddd4aa42