26 Nov, 2008

1 commit

  • Pass netns to xfrm_lookup()/__xfrm_lookup(). For that pass netns
    to flow_cache_lookup() and resolver callback.

    Take it from socket or netdevice. Stub DECnet to init_net.

    Signed-off-by: Alexey Dobriyan
    Signed-off-by: David S. Miller

    Alexey Dobriyan
     

26 Jul, 2008

1 commit

  • Removes legacy reinvent-the-wheel type thing. The generic
    machinery integrates much better to automated debugging aids
    such as kerneloops.org (and others), and is unambiguous due to
    better naming. Non-intuively BUG_TRAP() is actually equal to
    WARN_ON() rather than BUG_ON() though some might actually be
    promoted to BUG_ON() but I left that to future.

    I could make at least one BUILD_BUG_ON conversion.

    Signed-off-by: Ilpo Järvinen
    Signed-off-by: David S. Miller

    Ilpo Järvinen
     

14 Apr, 2008

1 commit


16 Oct, 2007

1 commit

  • The Coverity checker spotted that we have already oops'ed if "dst" was
    NULL.

    Since "dst" being NULL doesn't seem to be possible at this point this
    patch removes the NULL check.

    Signed-off-by: Adrian Bunk
    Acked-by: Masahide NAKAMURA
    Acked-by: Noriaki TAKAMIYA
    Signed-off-by: David S. Miller

    Adrian Bunk
     

11 Oct, 2007

1 commit

  • When XFRM policy and state are ready after TCP connection is started,
    the traffic should be transformed immediately, however it does not
    on IPv6 TCP.

    It depends on a dst cache replacement policy with connected socket.
    It seems that the replacement is always done for IPv4, however, on
    IPv6 case it is done only when routing cookie is changed.

    This patch fix that non-transformation dst can be changed to
    transformation one.
    This behavior is required by MIPv6 and improves IPv6 IPsec.

    Fixes by Masahide NAKAMURA.

    Signed-off-by: Noriaki TAKAMIYA
    Signed-off-by: Masahide NAKAMURA
    Signed-off-by: David S. Miller

    Noriaki TAKAMIYA
     

26 Jan, 2007

1 commit


03 Dec, 2006

3 commits


23 Sep, 2006

2 commits

  • Based on MIPL2 kernel patch.

    Signed-off-by: YOSHIFUJI Hideaki
    Signed-off-by: Ville Nuorvala
    Signed-off-by: David S. Miller

    YOSHIFUJI Hideaki
     
  • This labels the flows that could utilize IPSec xfrms at the points the
    flows are defined so that IPSec policy and SAs at the right label can
    be used.

    The following protos are currently not handled, but they should
    continue to be able to use single-labeled IPSec like they currently
    do.

    ipmr
    ip_gre
    ipip
    igmp
    sit
    sctp
    ip6_tunnel (IPv6 over IPv6 tunnel device)
    decnet

    Signed-off-by: Venkat Yekkirala
    Signed-off-by: David S. Miller

    Venkat Yekkirala
     

03 Aug, 2006

1 commit

  • The current users of ip6_dst_lookup can be divided into two classes:

    1) The caller holds no locks and is in user-context (UDP).
    2) The caller does not want to lookup the dst cache at all.

    The second class covers everyone except UDP because most people do
    the cache lookup directly before calling ip6_dst_lookup. This patch
    adds ip6_sk_dst_lookup for the first class.

    Similarly ip6_dst_store users can be divded into those that need to
    take the socket dst lock and those that don't. This patch adds
    __ip6_dst_store for those (everyone except UDP/datagram) that don't
    need an extra lock.

    Signed-off-by: Herbert Xu
    Signed-off-by: David S. Miller

    Herbert Xu
     

01 Jul, 2006

3 commits

  • * master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6:
    [IPV6]: Added GSO support for TCPv6
    [NET]: Generalise TSO-specific bits from skb_setup_caps
    [IPV6]: Added GSO support for TCPv6
    [IPV6]: Remove redundant length check on input
    [NETFILTER]: SCTP conntrack: fix crash triggered by packet without chunks
    [TG3]: Update version and reldate
    [TG3]: Add TSO workaround using GSO
    [TG3]: Turn on hw fix for ASF problems
    [TG3]: Add rx BD workaround
    [TG3]: Add tg3_netif_stop() in vlan functions
    [TCP]: Reset gso_segs if packet is dodgy

    Linus Torvalds
     
  • This patch adds GSO support for IPv6 and TCPv6. This is based on a patch
    by Ananda Raju . His original description is:

    This patch enables TSO over IPv6. Currently Linux network stacks
    restricts TSO over IPv6 by clearing of the NETIF_F_TSO bit from
    "dev->features". This patch will remove this restriction.

    This patch will introduce a new flag NETIF_F_TSO6 which will be used
    to check whether device supports TSO over IPv6. If device support TSO
    over IPv6 then we don't clear of NETIF_F_TSO and which will make the
    TCP layer to create TSO packets. Any device supporting TSO over IPv6
    will set NETIF_F_TSO6 flag in "dev->features" along with NETIF_F_TSO.

    In case when user disables TSO using ethtool, NETIF_F_TSO will get
    cleared from "dev->features". So even if we have NETIF_F_TSO6 we don't
    get TSO packets created by TCP layer.

    SKB_GSO_TCPV4 renamed to SKB_GSO_TCP to make it generic GSO packet.
    SKB_GSO_UDPV4 renamed to SKB_GSO_UDP as UFO is not a IPv4 feature.
    UFO is supported over IPv6 also

    The following table shows there is significant improvement in
    throughput with normal frames and CPU usage for both normal and jumbo.

    --------------------------------------------------
    | | 1500 | 9600 |
    | ------------------|-------------------|
    | | thru CPU | thru CPU |
    --------------------------------------------------
    | TSO OFF | 2.00 5.5% id | 5.66 20.0% id |
    --------------------------------------------------
    | TSO ON | 2.63 78.0 id | 5.67 39.0% id |
    --------------------------------------------------

    Signed-off-by: Herbert Xu
    Signed-off-by: David S. Miller

    Herbert Xu
     
  • Signed-off-by: Jörn Engel
    Signed-off-by: Adrian Bunk

    Jörn Engel
     

11 May, 2006

1 commit


08 Jan, 2006

1 commit

  • This patch contains the following cleanups:
    - addrconf.c: make addrconf_dad_stop() static
    - inet6_connection_sock.c should #include
    for getting the prototypes of it's global functions

    Signed-off-by: Adrian Bunk
    Signed-off-by: David S. Miller

    Adrian Bunk
     

04 Jan, 2006

3 commits