#include <linux/compiler.h>
#include <linux/mount.h>
#include <linux/zlib.h>
+#include <linux/syscalls.h>
+#include <linux/cpumask.h>
#include <net/tcp.h>
#include <net/tux_u.h>
/* Maximum number of threads: */
-#define CONFIG_TUX_NUMTHREADS 8
+#define CONFIG_TUX_NUMTHREADS 16
/* Number of cachemiss/IO threads: */
-#define NR_IO_THREADS 32
+#define NR_IO_THREADS 64
/* Maximum number of listen sockets per thread: */
#define CONFIG_TUX_NUMSOCKETS 16
extern int tux_TDprintk;
extern int tux_Dprintk;
-#define TUX_DEBUG CONFIG_TUX_DEBUG
-#if CONFIG_TUX_DEBUG
+#ifdef CONFIG_TUX_DEBUG
# define TUX_BUG() BUG()
# define TUX_DPRINTK 1
struct dentry *cwd_dentry;
struct vfsmount *cwd_mnt;
- struct file in_file;
+ struct file *in_file;
int fd;
read_descriptor_t desc;
u32 client_addr;
/* the file being sent */
unsigned int bytes_sent;
-#if CONFIG_TUX_DEBUG
+#ifdef CONFIG_TUX_DEBUG
unsigned int bytes_expected;
#endif
unsigned long first_timestamp;
void (*ftp_real_create_child)(struct sock *sk, struct sock *newsk);
void (*ftp_real_destruct)(struct sock *sk);
-#if CONFIG_TUX_EXTENDED_LOG
+#ifdef CONFIG_TUX_EXTENDED_LOG
unsigned long accept_timestamp;
unsigned long parse_timestamp;
unsigned long output_timestamp;
MIME_TYPE_MODULE,
} special_mimetypes_t;
-#if CONFIG_TUX_DEBUG
+#ifdef CONFIG_TUX_DEBUG
#if 0
extern inline void url_hist_hit (int size)
{
extern inline void url_hist_miss (int size)
{
unsigned int idx = size/1024;
-
+
if (idx >= URL_HIST_SIZE)
idx = URL_HIST_SIZE-1;
kstat.url_hist_misses[idx]++;
extern int idle_event (tux_req_t *req);
extern int output_space_event (tux_req_t *req);
-extern unsigned int log_cpu_mask;
+extern cpumask_t tux_log_cpu_mask;
extern unsigned int tux_compression;
extern unsigned int tux_noid;
extern unsigned int tux_cgi_inherit_cpu;
extern unsigned int tux_zerocopy_header;
extern unsigned int tux_zerocopy_sendfile;
-extern unsigned int tux_cgi_cpu_mask;
+extern cpumask_t tux_cgi_cpu_mask;
extern tux_proto_t tux_proto_http;
extern tux_proto_t tux_proto_ftp;
extern unsigned int tux_all_userspace;
__ptr; \
})
-extern long tux_close(unsigned int fd);
+#define tux_close(fd) sys_close(fd)
+
+extern int init_tux_request_slabs(void);
+extern void free_tux_request_slabs(void);
#endif