Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
* 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: [IPV4]: Explicitly call fib_get_table() in fib_frontend.c [NET]: Use BUILD_BUG_ON in net/core/flowi.c [NET]: Remove in-code externs for some functions from net/core/dev.c [NET]: Don't declare extern variables in net/core/sysctl_net_core.c [TCP]: Remove unneeded implicit type cast when calling tcp_minshall_update() [NET]: Treat the sign of the result of skb_headroom() consistently [9P]: Fix missing unlock before return in p9_mux_poll_start [PKT_SCHED]: Fix sch_prio.c build with CONFIG_NETDEVICES_MULTIQUEUE [IPV4] ip_gre: sendto/recvfrom NBMA address [SCTP]: Consolidate sctp_ulpq_renege_xxx functions [NETLINK]: Fix ACK processing after netlink_dump_start [VLAN]: MAINTAINERS update [DCCP]: Implement SIOCINQ/FIONREAD [NET]: Validate device addr prior to interface-up
This commit is contained in:
commit
06dbbfef82
26 changed files with 133 additions and 83 deletions
|
@ -120,6 +120,8 @@
|
|||
#include <linux/ctype.h>
|
||||
#include <linux/if_arp.h>
|
||||
|
||||
#include "net-sysfs.h"
|
||||
|
||||
/*
|
||||
* The list of packet types we will receive (as opposed to discard)
|
||||
* and the routines to invoke.
|
||||
|
@ -249,10 +251,6 @@ static RAW_NOTIFIER_HEAD(netdev_chain);
|
|||
|
||||
DEFINE_PER_CPU(struct softnet_data, softnet_data);
|
||||
|
||||
extern int netdev_kobject_init(void);
|
||||
extern int netdev_register_kobject(struct net_device *);
|
||||
extern void netdev_unregister_kobject(struct net_device *);
|
||||
|
||||
#ifdef CONFIG_DEBUG_LOCK_ALLOC
|
||||
/*
|
||||
* register_netdevice() inits dev->_xmit_lock and sets lockdep class
|
||||
|
@ -1007,17 +1005,20 @@ int dev_open(struct net_device *dev)
|
|||
* Call device private open method
|
||||
*/
|
||||
set_bit(__LINK_STATE_START, &dev->state);
|
||||
if (dev->open) {
|
||||
|
||||
if (dev->validate_addr)
|
||||
ret = dev->validate_addr(dev);
|
||||
|
||||
if (!ret && dev->open)
|
||||
ret = dev->open(dev);
|
||||
if (ret)
|
||||
clear_bit(__LINK_STATE_START, &dev->state);
|
||||
}
|
||||
|
||||
/*
|
||||
* If it went open OK then:
|
||||
*/
|
||||
|
||||
if (!ret) {
|
||||
if (ret)
|
||||
clear_bit(__LINK_STATE_START, &dev->state);
|
||||
else {
|
||||
/*
|
||||
* Set the flags.
|
||||
*/
|
||||
|
@ -1038,6 +1039,7 @@ int dev_open(struct net_device *dev)
|
|||
*/
|
||||
call_netdevice_notifiers(NETDEV_UP, dev);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
@ -142,8 +142,6 @@ typedef u64 flow_compare_t;
|
|||
typedef u32 flow_compare_t;
|
||||
#endif
|
||||
|
||||
extern void flowi_is_missized(void);
|
||||
|
||||
/* I hear what you're saying, use memcmp. But memcmp cannot make
|
||||
* important assumptions that we can here, such as alignment and
|
||||
* constant size.
|
||||
|
@ -153,8 +151,7 @@ static int flow_key_compare(struct flowi *key1, struct flowi *key2)
|
|||
flow_compare_t *k1, *k1_lim, *k2;
|
||||
const int n_elem = sizeof(struct flowi) / sizeof(flow_compare_t);
|
||||
|
||||
if (sizeof(struct flowi) % sizeof(flow_compare_t))
|
||||
flowi_is_missized();
|
||||
BUILD_BUG_ON(sizeof(struct flowi) % sizeof(flow_compare_t));
|
||||
|
||||
k1 = (flow_compare_t *) key1;
|
||||
k1_lim = k1 + n_elem;
|
||||
|
|
|
@ -18,6 +18,8 @@
|
|||
#include <linux/wireless.h>
|
||||
#include <net/iw_handler.h>
|
||||
|
||||
#include "net-sysfs.h"
|
||||
|
||||
#ifdef CONFIG_SYSFS
|
||||
static const char fmt_hex[] = "%#x\n";
|
||||
static const char fmt_long_hex[] = "%#lx\n";
|
||||
|
|
8
net/core/net-sysfs.h
Normal file
8
net/core/net-sysfs.h
Normal file
|
@ -0,0 +1,8 @@
|
|||
#ifndef __NET_SYSFS_H__
|
||||
#define __NET_SYSFS_H__
|
||||
|
||||
int netdev_kobject_init(void);
|
||||
int netdev_register_kobject(struct net_device *);
|
||||
void netdev_unregister_kobject(struct net_device *);
|
||||
|
||||
#endif
|
|
@ -9,25 +9,12 @@
|
|||
#include <linux/sysctl.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/socket.h>
|
||||
#include <linux/netdevice.h>
|
||||
#include <net/sock.h>
|
||||
#include <net/xfrm.h>
|
||||
|
||||
#ifdef CONFIG_SYSCTL
|
||||
|
||||
extern int netdev_max_backlog;
|
||||
extern int weight_p;
|
||||
|
||||
extern __u32 sysctl_wmem_max;
|
||||
extern __u32 sysctl_rmem_max;
|
||||
|
||||
extern int sysctl_core_destroy_delay;
|
||||
|
||||
#ifdef CONFIG_XFRM
|
||||
extern u32 sysctl_xfrm_aevent_etime;
|
||||
extern u32 sysctl_xfrm_aevent_rseqth;
|
||||
extern int sysctl_xfrm_larval_drop;
|
||||
extern u32 sysctl_xfrm_acq_expires;
|
||||
#endif
|
||||
|
||||
ctl_table core_table[] = {
|
||||
#ifdef CONFIG_NET
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue