diff options
author | Wen Gong <wgong@codeaurora.org> | 2019-09-06 04:48:57 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2019-09-11 09:33:29 +0200 |
commit | 06354665f92fa8be36124a8ba7113cdfa40d9df5 (patch) | |
tree | dcf39b513c66c43381be6e3882a72f7554a1107a /include/net/mac80211.h | |
parent | cfg80211: Do not compare with boolean in nl80211_common_reg_change_event (diff) | |
download | linux-06354665f92fa8be36124a8ba7113cdfa40d9df5.tar.xz linux-06354665f92fa8be36124a8ba7113cdfa40d9df5.zip |
mac80211: allow drivers to set max MTU
Make it possibly for drivers to adjust the default max_mtu
by storing it in the hardware struct and using that value
for all interfaces.
Signed-off-by: Wen Gong <wgong@codeaurora.org>
Link: https://lore.kernel.org/r/1567738137-31748-1-git-send-email-wgong@codeaurora.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net/mac80211.h')
-rw-r--r-- | include/net/mac80211.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 6781d4637557..523c6a09e1c8 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h @@ -2463,6 +2463,8 @@ enum ieee80211_hw_flags { * * @weight_multiplier: Driver specific airtime weight multiplier used while * refilling deficit of each TXQ. + * + * @max_mtu: the max mtu could be set. */ struct ieee80211_hw { struct ieee80211_conf conf; @@ -2500,6 +2502,7 @@ struct ieee80211_hw { u8 max_nan_de_entries; u8 tx_sk_pacing_shift; u8 weight_multiplier; + u32 max_mtu; }; static inline bool _ieee80211_hw_check(struct ieee80211_hw *hw, |