aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2005-07-24 23:39:30 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-24 23:39:30 -0400
commit6b6a93c6876ea1c530d5d3f68e3678093a27fab0 (patch)
tree24122979b411dcec6ff390fc9ae84ad9413128e9
parente89227889cec6b66758b44c83f78dba337e5d699 (diff)
parent7686ee1ad976efeddf10583f013462c66408ae51 (diff)
Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
-rw-r--r--drivers/w1/w1_int.c2
-rw-r--r--include/linux/netlink.h2
-rw-r--r--net/ipv6/ip6_tunnel.c2
-rw-r--r--net/sched/em_meta.c16
4 files changed, 11 insertions, 11 deletions
diff --git a/drivers/w1/w1_int.c b/drivers/w1/w1_int.c
index 35e85d961702..b5a5e04b6d37 100644
--- a/drivers/w1/w1_int.c
+++ b/drivers/w1/w1_int.c
@@ -88,7 +88,7 @@ static struct w1_master * w1_alloc_dev(u32 id, int slave_count, int slave_ttl,
88 88
89 dev->groups = 23; 89 dev->groups = 23;
90 dev->seq = 1; 90 dev->seq = 1;
91 dev->nls = netlink_kernel_create(NETLINK_NFLOG, NULL); 91 dev->nls = netlink_kernel_create(NETLINK_W1, NULL);
92 if (!dev->nls) { 92 if (!dev->nls) {
93 printk(KERN_ERR "Failed to create new netlink socket(%u) for w1 master %s.\n", 93 printk(KERN_ERR "Failed to create new netlink socket(%u) for w1 master %s.\n",
94 NETLINK_NFLOG, dev->dev.bus_id); 94 NETLINK_NFLOG, dev->dev.bus_id);
diff --git a/include/linux/netlink.h b/include/linux/netlink.h
index 2f0c085f2c7d..70c2a9dc4b2b 100644
--- a/include/linux/netlink.h
+++ b/include/linux/netlink.h
@@ -5,7 +5,7 @@
5#include <linux/types.h> 5#include <linux/types.h>
6 6
7#define NETLINK_ROUTE 0 /* Routing/device hook */ 7#define NETLINK_ROUTE 0 /* Routing/device hook */
8#define NETLINK_SKIP 1 /* Reserved for ENskip */ 8#define NETLINK_W1 1 /* 1-wire subsystem */
9#define NETLINK_USERSOCK 2 /* Reserved for user mode socket protocols */ 9#define NETLINK_USERSOCK 2 /* Reserved for user mode socket protocols */
10#define NETLINK_FIREWALL 3 /* Firewalling hook */ 10#define NETLINK_FIREWALL 3 /* Firewalling hook */
11#define NETLINK_TCPDIAG 4 /* TCP socket monitoring */ 11#define NETLINK_TCPDIAG 4 /* TCP socket monitoring */
diff --git a/net/ipv6/ip6_tunnel.c b/net/ipv6/ip6_tunnel.c
index f39ddeae1eef..09613729404c 100644
--- a/net/ipv6/ip6_tunnel.c
+++ b/net/ipv6/ip6_tunnel.c
@@ -1123,7 +1123,7 @@ static inline int ip6ip6_register(void)
1123 1123
1124static inline int ip6ip6_unregister(void) 1124static inline int ip6ip6_unregister(void)
1125{ 1125{
1126 return xfrm6_tunnel_unregister(&ip6ip6_handler); 1126 return xfrm6_tunnel_deregister(&ip6ip6_handler);
1127} 1127}
1128#else 1128#else
1129static struct inet6_protocol xfrm6_tunnel_protocol = { 1129static struct inet6_protocol xfrm6_tunnel_protocol = {
diff --git a/net/sched/em_meta.c b/net/sched/em_meta.c
index a18b924743d9..00eae5f9a01a 100644
--- a/net/sched/em_meta.c
+++ b/net/sched/em_meta.c
@@ -209,12 +209,14 @@ META_COLLECTOR(int_maclen)
209 * Netfilter 209 * Netfilter
210 **************************************************************************/ 210 **************************************************************************/
211 211
212#ifdef CONFIG_NETFILTER
213META_COLLECTOR(int_nfmark) 212META_COLLECTOR(int_nfmark)
214{ 213{
214#ifdef CONFIG_NETFILTER
215 dst->value = skb->nfmark; 215 dst->value = skb->nfmark;
216} 216#else
217 dst->value = 0;
217#endif 218#endif
219}
218 220
219/************************************************************************** 221/**************************************************************************
220 * Traffic Control 222 * Traffic Control
@@ -229,15 +231,17 @@ META_COLLECTOR(int_tcindex)
229 * Routing 231 * Routing
230 **************************************************************************/ 232 **************************************************************************/
231 233
232#ifdef CONFIG_NET_CLS_ROUTE
233META_COLLECTOR(int_rtclassid) 234META_COLLECTOR(int_rtclassid)
234{ 235{
235 if (unlikely(skb->dst == NULL)) 236 if (unlikely(skb->dst == NULL))
236 *err = -1; 237 *err = -1;
237 else 238 else
239#ifdef CONFIG_NET_CLS_ROUTE
238 dst->value = skb->dst->tclassid; 240 dst->value = skb->dst->tclassid;
239} 241#else
242 dst->value = 0;
240#endif 243#endif
244}
241 245
242META_COLLECTOR(int_rtiif) 246META_COLLECTOR(int_rtiif)
243{ 247{
@@ -487,13 +491,9 @@ static struct meta_ops __meta_ops[TCF_META_TYPE_MAX+1][TCF_META_ID_MAX+1] = {
487 [META_ID(PKTLEN)] = META_FUNC(int_pktlen), 491 [META_ID(PKTLEN)] = META_FUNC(int_pktlen),
488 [META_ID(DATALEN)] = META_FUNC(int_datalen), 492 [META_ID(DATALEN)] = META_FUNC(int_datalen),
489 [META_ID(MACLEN)] = META_FUNC(int_maclen), 493 [META_ID(MACLEN)] = META_FUNC(int_maclen),
490#ifdef CONFIG_NETFILTER
491 [META_ID(NFMARK)] = META_FUNC(int_nfmark), 494 [META_ID(NFMARK)] = META_FUNC(int_nfmark),
492#endif
493 [META_ID(TCINDEX)] = META_FUNC(int_tcindex), 495 [META_ID(TCINDEX)] = META_FUNC(int_tcindex),
494#ifdef CONFIG_NET_CLS_ROUTE
495 [META_ID(RTCLASSID)] = META_FUNC(int_rtclassid), 496 [META_ID(RTCLASSID)] = META_FUNC(int_rtclassid),
496#endif
497 [META_ID(RTIIF)] = META_FUNC(int_rtiif), 497 [META_ID(RTIIF)] = META_FUNC(int_rtiif),
498 [META_ID(SK_FAMILY)] = META_FUNC(int_sk_family), 498 [META_ID(SK_FAMILY)] = META_FUNC(int_sk_family),
499 [META_ID(SK_STATE)] = META_FUNC(int_sk_state), 499 [META_ID(SK_STATE)] = META_FUNC(int_sk_state),