Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts: drivers/net/s2io.c
This commit is contained in:
@@ -776,6 +776,7 @@ static int ipv6_create_tempaddr(struct inet6_ifaddr *ifp, struct inet6_ifaddr *i
|
||||
struct inet6_dev *idev = ifp->idev;
|
||||
struct in6_addr addr, *tmpaddr;
|
||||
unsigned long tmp_prefered_lft, tmp_valid_lft, tmp_cstamp, tmp_tstamp;
|
||||
unsigned long regen_advance;
|
||||
int tmp_plen;
|
||||
int ret = 0;
|
||||
int max_addresses;
|
||||
@@ -836,8 +837,23 @@ retry:
|
||||
tmp_tstamp = ifp->tstamp;
|
||||
spin_unlock_bh(&ifp->lock);
|
||||
|
||||
regen_advance = idev->cnf.regen_max_retry *
|
||||
idev->cnf.dad_transmits *
|
||||
idev->nd_parms->retrans_time / HZ;
|
||||
write_unlock(&idev->lock);
|
||||
|
||||
/* A temporary address is created only if this calculated Preferred
|
||||
* Lifetime is greater than REGEN_ADVANCE time units. In particular,
|
||||
* an implementation must not create a temporary address with a zero
|
||||
* Preferred Lifetime.
|
||||
*/
|
||||
if (tmp_prefered_lft <= regen_advance) {
|
||||
in6_ifa_put(ifp);
|
||||
in6_dev_put(idev);
|
||||
ret = -1;
|
||||
goto out;
|
||||
}
|
||||
|
||||
addr_flags = IFA_F_TEMPORARY;
|
||||
/* set in addrconf_prefix_rcv() */
|
||||
if (ifp->flags & IFA_F_OPTIMISTIC)
|
||||
@@ -1834,6 +1850,9 @@ ok:
|
||||
* lifetimes of an existing temporary address
|
||||
* when processing a Prefix Information Option.
|
||||
*/
|
||||
if (ifp != ift->ifpub)
|
||||
continue;
|
||||
|
||||
spin_lock(&ift->lock);
|
||||
flags = ift->flags;
|
||||
if (ift->valid_lft > valid_lft &&
|
||||
|
@@ -440,10 +440,10 @@ void icmpv6_send(struct sk_buff *skb, int type, int code, __u32 info,
|
||||
}
|
||||
|
||||
if (xfrm_decode_session_reverse(skb, &fl2, AF_INET6))
|
||||
goto out;
|
||||
goto out_dst_release;
|
||||
|
||||
if (ip6_dst_lookup(sk, &dst2, &fl))
|
||||
goto out;
|
||||
goto out_dst_release;
|
||||
|
||||
err = xfrm_lookup(&dst2, &fl, sk, XFRM_LOOKUP_ICMP);
|
||||
if (err == -ENOENT) {
|
||||
|
@@ -234,8 +234,7 @@ int ip6_mc_input(struct sk_buff *skb)
|
||||
IP6_INC_STATS_BH(ip6_dst_idev(skb->dst), IPSTATS_MIB_INMCASTPKTS);
|
||||
|
||||
hdr = ipv6_hdr(skb);
|
||||
deliver = unlikely(skb->dev->flags & (IFF_PROMISC|IFF_ALLMULTI)) ||
|
||||
ipv6_chk_mcast_addr(skb->dev, &hdr->daddr, NULL);
|
||||
deliver = ipv6_chk_mcast_addr(skb->dev, &hdr->daddr, NULL);
|
||||
|
||||
/*
|
||||
* IPv6 multicast router mode isnt currently supported.
|
||||
|
@@ -171,7 +171,9 @@ static __inline__ void fq_kill(struct nf_ct_frag6_queue *fq)
|
||||
|
||||
static void nf_ct_frag6_evictor(void)
|
||||
{
|
||||
local_bh_disable();
|
||||
inet_frag_evictor(&nf_init_frags, &nf_frags);
|
||||
local_bh_enable();
|
||||
}
|
||||
|
||||
static void nf_ct_frag6_expire(unsigned long data)
|
||||
|
Reference in New Issue
Block a user