diff options
author | Alexander Bondar <alexander.bondar@intel.com> | 2013-02-11 14:56:29 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-03-11 16:22:14 +0200 |
commit | 488b366a452934141959384c7a1b52b22d6154ef (patch) | |
tree | 85851d49961be9db15cbeea8038e873e4fc9028a /net/mac80211/trace.h | |
parent | 511044ea0bfc06614d903263ad094d1071fa172f (diff) | |
download | linux-488b366a452934141959384c7a1b52b22d6154ef.tar.gz linux-488b366a452934141959384c7a1b52b22d6154ef.tar.bz2 linux-488b366a452934141959384c7a1b52b22d6154ef.zip |
mac80211: add driver callback for per-interface multicast filter
Some devices have multicast filter capability for each individual
virtual interface rather than just a global one. Add an interface
specific driver callback allowing such drivers to configure this.
Signed-off-by: Alexander Bondar <alexander.bondar@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/trace.h')
-rw-r--r-- | net/mac80211/trace.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/net/mac80211/trace.h b/net/mac80211/trace.h index e7db2b804e0c..d97e4305cf1e 100644 --- a/net/mac80211/trace.h +++ b/net/mac80211/trace.h @@ -431,6 +431,30 @@ TRACE_EVENT(drv_prepare_multicast, ) ); +TRACE_EVENT(drv_set_multicast_list, + TP_PROTO(struct ieee80211_local *local, + struct ieee80211_sub_if_data *sdata, int mc_count), + + TP_ARGS(local, sdata, mc_count), + + TP_STRUCT__entry( + LOCAL_ENTRY + __field(bool, allmulti) + __field(int, mc_count) + ), + + TP_fast_assign( + LOCAL_ASSIGN; + __entry->allmulti = sdata->flags & IEEE80211_SDATA_ALLMULTI; + __entry->mc_count = mc_count; + ), + + TP_printk( + LOCAL_PR_FMT " configure mc filter, count=%d, allmulti=%d", + LOCAL_PR_ARG, __entry->mc_count, __entry->allmulti + ) +); + TRACE_EVENT(drv_configure_filter, TP_PROTO(struct ieee80211_local *local, unsigned int changed_flags, |