mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts: drivers/net/ethernet/altera/altera_sgdma.c net/netlink/af_netlink.c net/sched/cls_api.c net/sched/sch_api.c The netlink conflict dealt with moving to netlink_capable() and netlink_ns_capable() in the 'net' tree vs. supporting 'tc' operations in non-init namespaces. These were simple transformations from netlink_capable to netlink_ns_capable. The Altera driver conflict was simply code removal overlapping some void pointer cast cleanups in net-next. Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
commit
5f013c9bc7
600 changed files with 6816 additions and 3513 deletions
|
|
@ -1458,7 +1458,7 @@ static int fib6_walk_continue(struct fib6_walker_t *w)
|
|||
|
||||
if (w->skip) {
|
||||
w->skip--;
|
||||
continue;
|
||||
goto skip;
|
||||
}
|
||||
|
||||
err = w->func(w);
|
||||
|
|
@ -1468,6 +1468,7 @@ static int fib6_walk_continue(struct fib6_walker_t *w)
|
|||
w->count++;
|
||||
continue;
|
||||
}
|
||||
skip:
|
||||
w->state = FWS_U;
|
||||
case FWS_U:
|
||||
if (fn == w->root)
|
||||
|
|
|
|||
|
|
@ -344,12 +344,16 @@ static unsigned int ip6_dst_mtu_forward(const struct dst_entry *dst)
|
|||
|
||||
static bool ip6_pkt_too_big(const struct sk_buff *skb, unsigned int mtu)
|
||||
{
|
||||
if (skb->len <= mtu || skb->local_df)
|
||||
if (skb->len <= mtu)
|
||||
return false;
|
||||
|
||||
/* ipv6 conntrack defrag sets max_frag_size + local_df */
|
||||
if (IP6CB(skb)->frag_max_size && IP6CB(skb)->frag_max_size > mtu)
|
||||
return true;
|
||||
|
||||
if (skb->local_df)
|
||||
return false;
|
||||
|
||||
if (skb_is_gso(skb) && skb_gso_network_seglen(skb) <= mtu)
|
||||
return false;
|
||||
|
||||
|
|
|
|||
|
|
@ -1633,7 +1633,7 @@ struct sock *mroute6_socket(struct net *net, struct sk_buff *skb)
|
|||
{
|
||||
struct mr6_table *mrt;
|
||||
struct flowi6 fl6 = {
|
||||
.flowi6_iif = skb->skb_iif,
|
||||
.flowi6_iif = skb->skb_iif ? : LOOPBACK_IFINDEX,
|
||||
.flowi6_oif = skb->dev->ifindex,
|
||||
.flowi6_mark = skb->mark,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -30,13 +30,15 @@ int ip6_route_me_harder(struct sk_buff *skb)
|
|||
.daddr = iph->daddr,
|
||||
.saddr = iph->saddr,
|
||||
};
|
||||
int err;
|
||||
|
||||
dst = ip6_route_output(net, skb->sk, &fl6);
|
||||
if (dst->error) {
|
||||
err = dst->error;
|
||||
if (err) {
|
||||
IP6_INC_STATS(net, ip6_dst_idev(dst), IPSTATS_MIB_OUTNOROUTES);
|
||||
LIMIT_NETDEBUG(KERN_DEBUG "ip6_route_me_harder: No more route.\n");
|
||||
dst_release(dst);
|
||||
return dst->error;
|
||||
return err;
|
||||
}
|
||||
|
||||
/* Drop old route. */
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ static bool rpfilter_lookup_reverse6(const struct sk_buff *skb,
|
|||
struct ipv6hdr *iph = ipv6_hdr(skb);
|
||||
bool ret = false;
|
||||
struct flowi6 fl6 = {
|
||||
.flowi6_iif = LOOPBACK_IFINDEX,
|
||||
.flowlabel = (* (__be32 *) iph) & IPV6_FLOWINFO_MASK,
|
||||
.flowi6_proto = iph->nexthdr,
|
||||
.daddr = iph->saddr,
|
||||
|
|
|
|||
|
|
@ -1273,6 +1273,7 @@ void ip6_redirect(struct sk_buff *skb, struct net *net, int oif, u32 mark)
|
|||
struct flowi6 fl6;
|
||||
|
||||
memset(&fl6, 0, sizeof(fl6));
|
||||
fl6.flowi6_iif = LOOPBACK_IFINDEX;
|
||||
fl6.flowi6_oif = oif;
|
||||
fl6.flowi6_mark = mark;
|
||||
fl6.daddr = iph->daddr;
|
||||
|
|
@ -1294,6 +1295,7 @@ void ip6_redirect_no_header(struct sk_buff *skb, struct net *net, int oif,
|
|||
struct flowi6 fl6;
|
||||
|
||||
memset(&fl6, 0, sizeof(fl6));
|
||||
fl6.flowi6_iif = LOOPBACK_IFINDEX;
|
||||
fl6.flowi6_oif = oif;
|
||||
fl6.flowi6_mark = mark;
|
||||
fl6.daddr = msg->dest;
|
||||
|
|
|
|||
Loading…
Reference in a new issue