o net: save some more bytes in the kernel image moving global zero inits to .bss

parent 2675d50e
......@@ -30,8 +30,8 @@ enum lw_bits {
LW_SE_USED
};
static unsigned long linkwatch_flags = 0;
static unsigned long linkwatch_nextevent = 0;
static unsigned long linkwatch_flags;
static unsigned long linkwatch_nextevent;
static void linkwatch_event(void *dummy);
static DECLARE_WORK(linkwatch_work, linkwatch_event, NULL);
......
......@@ -198,8 +198,8 @@ static int debug;
/* Module parameters, defaults. */
static int count_d = 100000;
static int ipg_d = 0;
static int clone_skb_d = 0;
static int ipg_d;
static int clone_skb_d;
#define MAX_PKTGEN 8
......@@ -220,7 +220,7 @@ static inline __u64 getCurMs(void) {
}
#define PG_PROC_DIR "pktgen"
static struct proc_dir_entry *proc_dir = 0;
static struct proc_dir_entry *proc_dir;
static struct net_device *setup_inject(struct pktgen_info* info)
{
......
......@@ -86,7 +86,7 @@
* Shall we try to damage output packets if routing dev changes?
*/
int sysctl_ip_dynaddr = 0;
int sysctl_ip_dynaddr;
int sysctl_ip_default_ttl = IPDEFTTL;
/* Generate a checksum for an outgoing IP datagram. */
......
......@@ -78,16 +78,16 @@ int sysctl_tcp_reordering = TCP_FASTRETRANS_THRESH;
#ifdef CONFIG_INET_ECN
int sysctl_tcp_ecn = 1;
#else
int sysctl_tcp_ecn = 0;
int sysctl_tcp_ecn;
#endif
int sysctl_tcp_dsack = 1;
int sysctl_tcp_app_win = 31;
int sysctl_tcp_adv_win_scale = 2;
int sysctl_tcp_stdurg = 0;
int sysctl_tcp_rfc1337 = 0;
int sysctl_tcp_stdurg;
int sysctl_tcp_rfc1337;
int sysctl_tcp_max_orphans = NR_FILE;
int sysctl_tcp_frto = 0;
int sysctl_tcp_frto;
#define FLAG_DATA 0x01 /* Incoming frame contained data. */
#define FLAG_WIN_UPDATE 0x02 /* Incoming ACK was a window update. */
......
......@@ -33,11 +33,11 @@
#define SYNC_INIT 1
#endif
int sysctl_tcp_tw_recycle = 0;
int sysctl_tcp_tw_recycle;
int sysctl_tcp_max_tw_buckets = NR_FILE*2;
int sysctl_tcp_syncookies = SYNC_INIT;
int sysctl_tcp_abort_on_overflow = 0;
int sysctl_tcp_abort_on_overflow;
static __inline__ int tcp_in_window(u32 seq, u32 end_seq, u32 s_win, u32 e_win)
{
......@@ -50,7 +50,7 @@ static __inline__ int tcp_in_window(u32 seq, u32 end_seq, u32 s_win, u32 e_win)
/* New-style handling of TIME_WAIT sockets. */
int tcp_tw_count = 0;
int tcp_tw_count;
/* Must be called with locally disabled BHs. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment