You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
Merge branch 'master' of /repos/git/net-next-2.6
Conflicts: Documentation/feature-removal-schedule.txt net/ipv6/netfilter/ip6t_REJECT.c net/netfilter/xt_limit.c Signed-off-by: Patrick McHardy <kaber@trash.net>
This commit is contained in:
@@ -446,7 +446,7 @@ static void dn_destruct(struct sock *sk)
|
||||
skb_queue_purge(&scp->other_xmit_queue);
|
||||
skb_queue_purge(&scp->other_receive_queue);
|
||||
|
||||
dst_release(xchg(&sk->sk_dst_cache, NULL));
|
||||
dst_release(rcu_dereference_check(sk->sk_dst_cache, 1));
|
||||
}
|
||||
|
||||
static int dn_memory_pressure;
|
||||
@@ -1105,7 +1105,7 @@ static int dn_accept(struct socket *sock, struct socket *newsock, int flags)
|
||||
release_sock(sk);
|
||||
|
||||
dst = skb_dst(skb);
|
||||
dst_release(xchg(&newsk->sk_dst_cache, dst));
|
||||
sk_dst_set(newsk, dst);
|
||||
skb_dst_set(skb, NULL);
|
||||
|
||||
DN_SK(newsk)->state = DN_CR;
|
||||
@@ -1956,7 +1956,7 @@ static int dn_sendmsg(struct kiocb *iocb, struct socket *sock,
|
||||
}
|
||||
|
||||
if ((flags & MSG_TRYHARD) && sk->sk_dst_cache)
|
||||
dst_negative_advice(&sk->sk_dst_cache, sk);
|
||||
dst_negative_advice(sk);
|
||||
|
||||
mss = scp->segsize_rem;
|
||||
fctype = scp->services_rem & NSP_FC_MASK;
|
||||
|
||||
+7
-6
@@ -40,6 +40,7 @@
|
||||
#include <linux/skbuff.h>
|
||||
#include <linux/sysctl.h>
|
||||
#include <linux/notifier.h>
|
||||
#include <linux/slab.h>
|
||||
#include <asm/uaccess.h>
|
||||
#include <asm/system.h>
|
||||
#include <net/net_namespace.h>
|
||||
@@ -349,7 +350,7 @@ static void dn_dev_del_ifa(struct dn_dev *dn_db, struct dn_ifaddr **ifap, int de
|
||||
if (dn_db->dev->type == ARPHRD_ETHER) {
|
||||
if (ifa1->ifa_local != dn_eth2dn(dev->dev_addr)) {
|
||||
dn_dn2eth(mac_addr, ifa1->ifa_local);
|
||||
dev_mc_delete(dev, mac_addr, ETH_ALEN, 0);
|
||||
dev_mc_del(dev, mac_addr);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -380,7 +381,7 @@ static int dn_dev_insert_ifa(struct dn_dev *dn_db, struct dn_ifaddr *ifa)
|
||||
if (dev->type == ARPHRD_ETHER) {
|
||||
if (ifa->ifa_local != dn_eth2dn(dev->dev_addr)) {
|
||||
dn_dn2eth(mac_addr, ifa->ifa_local);
|
||||
dev_mc_add(dev, mac_addr, ETH_ALEN, 0);
|
||||
dev_mc_add(dev, mac_addr);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1000,9 +1001,9 @@ static int dn_eth_up(struct net_device *dev)
|
||||
struct dn_dev *dn_db = dev->dn_ptr;
|
||||
|
||||
if (dn_db->parms.forwarding == 0)
|
||||
dev_mc_add(dev, dn_rt_all_end_mcast, ETH_ALEN, 0);
|
||||
dev_mc_add(dev, dn_rt_all_end_mcast);
|
||||
else
|
||||
dev_mc_add(dev, dn_rt_all_rt_mcast, ETH_ALEN, 0);
|
||||
dev_mc_add(dev, dn_rt_all_rt_mcast);
|
||||
|
||||
dn_db->use_long = 1;
|
||||
|
||||
@@ -1014,9 +1015,9 @@ static void dn_eth_down(struct net_device *dev)
|
||||
struct dn_dev *dn_db = dev->dn_ptr;
|
||||
|
||||
if (dn_db->parms.forwarding == 0)
|
||||
dev_mc_delete(dev, dn_rt_all_end_mcast, ETH_ALEN, 0);
|
||||
dev_mc_del(dev, dn_rt_all_end_mcast);
|
||||
else
|
||||
dev_mc_delete(dev, dn_rt_all_rt_mcast, ETH_ALEN, 0);
|
||||
dev_mc_del(dev, dn_rt_all_rt_mcast);
|
||||
}
|
||||
|
||||
static void dn_dev_set_timer(struct net_device *dev);
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include <linux/string.h>
|
||||
#include <linux/net.h>
|
||||
#include <linux/socket.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/sockios.h>
|
||||
#include <linux/init.h>
|
||||
#include <linux/skbuff.h>
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#include <linux/module.h>
|
||||
#include <linux/socket.h>
|
||||
#include <linux/if_arp.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/if_ether.h>
|
||||
#include <linux/init.h>
|
||||
#include <linux/proc_fs.h>
|
||||
|
||||
@@ -57,6 +57,7 @@
|
||||
#include <linux/netdevice.h>
|
||||
#include <linux/inet.h>
|
||||
#include <linux/route.h>
|
||||
#include <linux/slab.h>
|
||||
#include <net/sock.h>
|
||||
#include <net/tcp_states.h>
|
||||
#include <asm/system.h>
|
||||
|
||||
@@ -50,6 +50,7 @@
|
||||
#include <linux/netdevice.h>
|
||||
#include <linux/inet.h>
|
||||
#include <linux/route.h>
|
||||
#include <linux/slab.h>
|
||||
#include <net/sock.h>
|
||||
#include <asm/system.h>
|
||||
#include <linux/fcntl.h>
|
||||
|
||||
@@ -66,6 +66,7 @@
|
||||
#include <linux/inet.h>
|
||||
#include <linux/route.h>
|
||||
#include <linux/in_route.h>
|
||||
#include <linux/slab.h>
|
||||
#include <net/sock.h>
|
||||
#include <linux/mm.h>
|
||||
#include <linux/proc_fs.h>
|
||||
|
||||
+2
-20
@@ -196,7 +196,6 @@ static int dn_fib_rule_fill(struct fib_rule *rule, struct sk_buff *skb,
|
||||
{
|
||||
struct dn_fib_rule *r = (struct dn_fib_rule *)rule;
|
||||
|
||||
frh->family = AF_DECnet;
|
||||
frh->dst_len = r->dst_len;
|
||||
frh->src_len = r->src_len;
|
||||
frh->tos = 0;
|
||||
@@ -212,30 +211,13 @@ nla_put_failure:
|
||||
return -ENOBUFS;
|
||||
}
|
||||
|
||||
static u32 dn_fib_rule_default_pref(struct fib_rules_ops *ops)
|
||||
{
|
||||
struct list_head *pos;
|
||||
struct fib_rule *rule;
|
||||
|
||||
if (!list_empty(&dn_fib_rules_ops->rules_list)) {
|
||||
pos = dn_fib_rules_ops->rules_list.next;
|
||||
if (pos->next != &dn_fib_rules_ops->rules_list) {
|
||||
rule = list_entry(pos->next, struct fib_rule, list);
|
||||
if (rule->pref)
|
||||
return rule->pref - 1;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void dn_fib_rule_flush_cache(struct fib_rules_ops *ops)
|
||||
{
|
||||
dn_rt_cache_flush(-1);
|
||||
}
|
||||
|
||||
static struct fib_rules_ops dn_fib_rules_ops_template = {
|
||||
.family = AF_DECnet,
|
||||
.family = FIB_RULES_DECNET,
|
||||
.rule_size = sizeof(struct dn_fib_rule),
|
||||
.addr_size = sizeof(u16),
|
||||
.action = dn_fib_rule_action,
|
||||
@@ -243,7 +225,7 @@ static struct fib_rules_ops dn_fib_rules_ops_template = {
|
||||
.configure = dn_fib_rule_configure,
|
||||
.compare = dn_fib_rule_compare,
|
||||
.fill = dn_fib_rule_fill,
|
||||
.default_pref = dn_fib_rule_default_pref,
|
||||
.default_pref = fib_default_rule_pref,
|
||||
.flush_cache = dn_fib_rule_flush_cache,
|
||||
.nlgroup = RTNLGRP_DECnet_RULE,
|
||||
.policy = dn_fib_rule_policy,
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
#include <linux/string.h>
|
||||
#include <linux/net.h>
|
||||
#include <linux/socket.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/sockios.h>
|
||||
#include <linux/init.h>
|
||||
#include <linux/skbuff.h>
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
*/
|
||||
#include <linux/module.h>
|
||||
#include <linux/skbuff.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/init.h>
|
||||
#include <linux/netdevice.h>
|
||||
#include <linux/netfilter.h>
|
||||
|
||||
Reference in New Issue
Block a user