mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
net: remove padding from struct socket on 64bit & increase objects/cache
remove padding from struct socket reducing its size by 8 bytes. This allows more objects/cache in sock_inode_cache 12 objects/cache when cacheline size is 128 (generic x86_64) Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
4ad3f26162
commit
2c693610fe
1 changed files with 2 additions and 2 deletions
|
@ -106,23 +106,23 @@ enum sock_shutdown_cmd {
|
||||||
/**
|
/**
|
||||||
* struct socket - general BSD socket
|
* struct socket - general BSD socket
|
||||||
* @state: socket state (%SS_CONNECTED, etc)
|
* @state: socket state (%SS_CONNECTED, etc)
|
||||||
|
* @type: socket type (%SOCK_STREAM, etc)
|
||||||
* @flags: socket flags (%SOCK_ASYNC_NOSPACE, etc)
|
* @flags: socket flags (%SOCK_ASYNC_NOSPACE, etc)
|
||||||
* @ops: protocol specific socket operations
|
* @ops: protocol specific socket operations
|
||||||
* @fasync_list: Asynchronous wake up list
|
* @fasync_list: Asynchronous wake up list
|
||||||
* @file: File back pointer for gc
|
* @file: File back pointer for gc
|
||||||
* @sk: internal networking protocol agnostic socket representation
|
* @sk: internal networking protocol agnostic socket representation
|
||||||
* @wait: wait queue for several uses
|
* @wait: wait queue for several uses
|
||||||
* @type: socket type (%SOCK_STREAM, etc)
|
|
||||||
*/
|
*/
|
||||||
struct socket {
|
struct socket {
|
||||||
socket_state state;
|
socket_state state;
|
||||||
|
short type;
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
const struct proto_ops *ops;
|
const struct proto_ops *ops;
|
||||||
struct fasync_struct *fasync_list;
|
struct fasync_struct *fasync_list;
|
||||||
struct file *file;
|
struct file *file;
|
||||||
struct sock *sk;
|
struct sock *sk;
|
||||||
wait_queue_head_t wait;
|
wait_queue_head_t wait;
|
||||||
short type;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct vm_area_struct;
|
struct vm_area_struct;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue