1. 02 3月, 2011 8 次提交
  2. 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
  3. 24 2月, 2011 2 次提交
  4. 23 2月, 2011 3 次提交
  5. 21 2月, 2011 1 次提交
  6. 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
  7. 19 2月, 2011 3 次提交
  8. 18 2月, 2011 6 次提交
  9. 15 2月, 2011 4 次提交
  10. 12 2月, 2011 1 次提交
  11. 11 2月, 2011 3 次提交
    • 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
    • D
      inetpeer: Abstract address representation further. · 7a71ed89
      David S. Miller 提交于
      Future changes will add caching information, and some of
      these new elements will be addresses.
      
      Since the family is implicit via the ->daddr.family member,
      replicating the family in ever address we store is entirely
      redundant.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7a71ed89
  12. 09 2月, 2011 2 次提交
    • D
      net: Kill NETEVENT_PMTU_UPDATE. · 8d13a2a9
      David S. Miller 提交于
      Nobody actually does anything in response to the event,
      so just kill it off.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8d13a2a9
    • N
      ipsec: allow to align IPv4 AH on 32 bits · fa9921e4
      Nicolas Dichtel 提交于
      The Linux IPv4 AH stack aligns the AH header on a 64 bit boundary
      (like in IPv6). This is not RFC compliant (see RFC4302, Section
      3.3.3.2.1), it should be aligned on 32 bits.
      
      For most of the authentication algorithms, the ICV size is 96 bits.
      The AH header alignment on 32 or 64 bits gives the same results.
      
      However for SHA-256-128 for instance, the wrong 64 bit alignment results
      in adding useless padding in IPv4 AH, which is forbidden by the RFC.
      
      To avoid breaking backward compatibility, we use a new flag
      (XFRM_STATE_ALIGN4) do change original behavior.
      
      Initial patch from Dang Hongwu <hongwu.dang@6wind.com> and
      Christophe Gouault <christophe.gouault@6wind.com>.
      Signed-off-by: NNicolas Dichtel <nicolas.dichtel@6wind.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      fa9921e4
  13. 05 2月, 2011 2 次提交
  14. 04 2月, 2011 2 次提交
  15. 03 2月, 2011 1 次提交