diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-08-27 09:55:09 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-08-29 02:31:51 -0400 |
commit | 65c5b786a37746302e225223c0d8b760d4c48a8b (patch) | |
tree | 9e8c222fdc6aebbd600522a7cfd79e9edaf917e7 /net/core | |
parent | 475ac1e4099a005e1307c416df19f2100b7a838d (diff) |
pktgen: mark read-only/mostly variables
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/pktgen.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/core/pktgen.c b/net/core/pktgen.c index f96e9f090796..ccbc3a48cc27 100644 --- a/net/core/pktgen.c +++ b/net/core/pktgen.c | |||
@@ -414,7 +414,7 @@ static __u64 getCurUs(void) | |||
414 | 414 | ||
415 | /* old include end */ | 415 | /* old include end */ |
416 | 416 | ||
417 | static char version[] __initdata = VERSION; | 417 | static const char version[] __initconst = VERSION; |
418 | 418 | ||
419 | static int pktgen_remove_device(struct pktgen_thread *t, struct pktgen_dev *i); | 419 | static int pktgen_remove_device(struct pktgen_thread *t, struct pktgen_dev *i); |
420 | static int pktgen_add_device(struct pktgen_thread *t, const char *ifname); | 420 | static int pktgen_add_device(struct pktgen_thread *t, const char *ifname); |
@@ -432,10 +432,10 @@ static unsigned int scan_ip6(const char *s, char ip[16]); | |||
432 | static unsigned int fmt_ip6(char *s, const char ip[16]); | 432 | static unsigned int fmt_ip6(char *s, const char ip[16]); |
433 | 433 | ||
434 | /* Module parameters, defaults. */ | 434 | /* Module parameters, defaults. */ |
435 | static int pg_count_d = 1000; /* 1000 pkts by default */ | 435 | static int pg_count_d __read_mostly = 1000; |
436 | static int pg_delay_d; | 436 | static int pg_delay_d __read_mostly; |
437 | static int pg_clone_skb_d; | 437 | static int pg_clone_skb_d __read_mostly; |
438 | static int debug; | 438 | static int debug __read_mostly; |
439 | 439 | ||
440 | static DEFINE_MUTEX(pktgen_thread_lock); | 440 | static DEFINE_MUTEX(pktgen_thread_lock); |
441 | static LIST_HEAD(pktgen_threads); | 441 | static LIST_HEAD(pktgen_threads); |