| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | From: Johannes Berg <johannes.berg@intel.com> |
| 2 | Date: Fri, 18 Jun 2021 13:41:44 +0300 |
| 3 | Subject: [PATCH] mac80211: rearrange struct txq_info for fewer holes |
| 4 | |
| 5 | We can slightly decrease the size of struct txq_info by |
| 6 | rearranging some fields for fewer holes, so do that. |
| 7 | |
| 8 | Signed-off-by: Johannes Berg <johannes.berg@intel.com> |
| 9 | Signed-off-by: Luca Coelho <luciano.coelho@intel.com> |
| 10 | Link: https://lore.kernel.org/r/iwlwifi.20210618133832.1bf019a1fe2e.Ib54622b8d6dc1a9a7dc484e573c073119450538b@changeid |
| 11 | Signed-off-by: Johannes Berg <johannes.berg@intel.com> |
| 12 | --- |
| 13 | |
| 14 | --- a/net/mac80211/ieee80211_i.h |
| 15 | +++ b/net/mac80211/ieee80211_i.h |
| 16 | @@ -5,7 +5,7 @@ |
| 17 | * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz> |
| 18 | * Copyright 2007-2010 Johannes Berg <johannes@sipsolutions.net> |
| 19 | * Copyright 2013-2015 Intel Mobile Communications GmbH |
| 20 | - * Copyright (C) 2018-2020 Intel Corporation |
| 21 | + * Copyright (C) 2018-2021 Intel Corporation |
| 22 | */ |
| 23 | |
| 24 | #ifndef IEEE80211_I_H |
| 25 | @@ -848,9 +848,12 @@ struct txq_info { |
| 26 | struct fq_tin tin; |
| 27 | struct codel_vars def_cvars; |
| 28 | struct codel_stats cstats; |
| 29 | - struct sk_buff_head frags; |
| 30 | - struct list_head schedule_order; |
| 31 | + |
| 32 | u16 schedule_round; |
| 33 | + struct list_head schedule_order; |
| 34 | + |
| 35 | + struct sk_buff_head frags; |
| 36 | + |
| 37 | unsigned long flags; |
| 38 | |
| 39 | /* keep last! */ |