Skip to content

Commit 1ace2b4

Browse files
edumazetdavem330
authored andcommitted
net: shrink struct sock by 8 bytes
Move sk_bind_phc next to sk_peer_lock to fill a hole. Signed-off-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 1b31deb commit 1ace2b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/net/sock.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,7 @@ struct sock {
489489
u16 sk_busy_poll_budget;
490490
#endif
491491
spinlock_t sk_peer_lock;
492+
int sk_bind_phc;
492493
struct pid *sk_peer_pid;
493494
const struct cred *sk_peer_cred;
494495

@@ -498,7 +499,6 @@ struct sock {
498499
seqlock_t sk_stamp_seq;
499500
#endif
500501
u16 sk_tsflags;
501-
int sk_bind_phc;
502502
u8 sk_shutdown;
503503
u32 sk_tskey;
504504
atomic_t sk_zckey;

0 commit comments

Comments
 (0)