mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-18 08:35:03 +00:00
net: skbuff: move alloc_cpu into a potential hole
alloc_cpu is currently between 4 byte fields, so it's almost guaranteed to create a 2B hole. It has a knock on effect of creating a 4B hole after @end (and @end and @tail being in different cachelines). None of this matters hugely, but for kernel configs which don't enable all the features there may well be a 2B hole after the bitfield. Move alloc_cpu there. Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Reviewed-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c24831a13b
commit
4398f3f6d1
1 changed files with 2 additions and 1 deletions
|
@ -991,6 +991,8 @@ struct sk_buff {
|
|||
__u16 tc_index; /* traffic control index */
|
||||
#endif
|
||||
|
||||
u16 alloc_cpu;
|
||||
|
||||
union {
|
||||
__wsum csum;
|
||||
struct {
|
||||
|
@ -1014,7 +1016,6 @@ struct sk_buff {
|
|||
unsigned int sender_cpu;
|
||||
};
|
||||
#endif
|
||||
u16 alloc_cpu;
|
||||
#ifdef CONFIG_NETWORK_SECMARK
|
||||
__u32 secmark;
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue