[PATCH v2] iproute2: macvlan: add "source" mode

2016-09-25 Thread Michael Braun
vlan0 type macvlan macaddr del 00:11:11:11:11:11 ip link set link dev macvlan0 type macvlan macaddr flush ip -details link show dev macvlan0 Based on previous work of Stefan Gula <ste...@gmail.com> Signed-off-by: Michael Braun <michael-...@fami-braun.de> Cc: ste...@gmail.

[PATCH] iproute2: macvlan: add "source" mode

2016-09-25 Thread Michael Braun
vlan0 type macvlan macaddr del 00:11:11:11:11:11 ip link set link dev macvlan0 type macvlan macaddr flush ip -details link show dev macvlan0 Based on previous work of Stefan Gula <ste...@gmail.com> Signed-off-by: Michael Braun <michael-...@fami-braun.de> Cc: ste...@gmail.

[PATCH v3] iproute2: macvlan: add "source" mode

2016-09-25 Thread Michael Braun
vlan0 type macvlan macaddr del 00:11:11:11:11:11 ip link set link dev macvlan0 type macvlan macaddr flush ip -details link show dev macvlan0 Based on previous work of Stefan Gula <ste...@gmail.com> Signed-off-by: Michael Braun <michael-...@fami-braun.de> Cc: ste...@gmail.com -

[PATCH v5 4/4] mac80211: multicast to unicast conversion

2016-10-07 Thread Michael Braun
. This change opts for iterating all BSS stations for finding the stations assigned to this AP/AP_VLAN interface, as there currently is no per AP_VLAN list to iterate and multicast packets are expected to be few. If needed, such a list could be added later. Signed-off-by: Michael Braun <michael-...@f

[PATCH v5 3/4] cfg80211: configure multicast to unicast for AP interfaces

2016-10-07 Thread Michael Braun
This add a userspace toggle to configure multicast to unicast. Signed-off-by: Michael Braun <michael-...@fami-braun.de> --- include/net/cfg80211.h | 6 ++ include/uapi/linux/nl80211.h | 10 ++ net/wireless/nl80211.c | 36 net/wi

[PATCH v5 1/4] mac80211: remove unnecessary num_mcast_sta user

2016-10-07 Thread Michael Braun
Checking for num_mcast_sta in __ieee80211_request_smps_ap() is unnecessary, as sta list will be empty in this case anyway, so list_for_each_entry(sta, ...) will exit immediately. Signed-off-by: Michael Braun <michael-...@fami-braun.de> --- net/mac80211/cfg.c | 7 --- 1 file chan

[PATCH v5 2/4] mac80211: filter multicast data packets on AP / AP_VLAN

2016-10-07 Thread Michael Braun
. The existing one for AP interfaces is altered to not track stations assigned to an AP_VLAN interface. The new counter is exposed in debugfs. Signed-off-by: Michael Braun <michael-...@fami-braun.de> -- v4: - update description v3: - reuse existing num_mcast_sta v2: - use separate fu

[PATCH v4 1/4] mac80211: remove unnecessary num_mcast_sta user

2016-10-07 Thread Michael Braun
Checking for num_mcast_sta in __ieee80211_request_smps_ap() is unnecessary, as sta list will be empty in this case anyway, so list_for_each_entry(sta, ...) will exit immediately. Signed-off-by: Michael Braun <michael-...@fami-braun.de> --- net/mac80211/cfg.c | 7 --- 1 file chan

[PATCH v4 4/4] mac80211: multicast to unicast conversion

2016-10-07 Thread Michael Braun
. This change opts for iterating all BSS stations for finding the stations assigned to this AP/AP_VLAN interface, as there currently is no per AP_VLAN list to iterate and multicast packets are expected to be few. If needed, such a list could be added later. Signed-off-by: Michael Braun <michael-...@f

[PATCH v4 3/4] cfg80211: configure multicast to unicast for AP interfaces

2016-10-07 Thread Michael Braun
This add a userspace toggle to configure multicast to unicast. Signed-off-by: Michael Braun <michael-...@fami-braun.de> --- include/net/cfg80211.h | 6 ++ include/uapi/linux/nl80211.h | 10 ++ net/wireless/nl80211.c | 36 net/wi

[PATCH v4 2/4] mac80211: filter multicast data packets on AP / AP_VLAN

2016-10-07 Thread Michael Braun
. The existing one for AP interfaces is altered to not track stations assigned to an AP_VLAN interface. The new counter is exposed in debugfs. Signed-off-by: Michael Braun <michael-...@fami-braun.de> -- v4: - update description v3: - reuse existing num_mcast_sta v2: - use separate fu

[PATCH v6 2/4] mac80211: filter multicast data packets on AP / AP_VLAN

2016-10-10 Thread Michael Braun
. The existing one for AP interfaces is altered to not track stations assigned to an AP_VLAN interface. The new counter is exposed in debugfs. Signed-off-by: Michael Braun <michael-...@fami-braun.de> -- v4: - update description v3: - reuse existing num_mcast_sta v2: - use separate fu

[PATCH v6 3/4] cfg80211: configure multicast to unicast for AP interfaces

2016-10-10 Thread Michael Braun
This add a userspace toggle to configure multicast to unicast. Signed-off-by: Michael Braun <michael-...@fami-braun.de> -- v6: - clarify documentation - fix policy for NL80211_ATTR_MULTICAST_TO_UNICAST_ENABLED --- include/net/cfg80211.h | 6 ++ include/uapi/linux/nl80211.

[PATCH v6 1/4] mac80211: remove unnecessary num_mcast_sta user

2016-10-10 Thread Michael Braun
Checking for num_mcast_sta in __ieee80211_request_smps_ap() is unnecessary, as sta list will be empty in this case anyway, so list_for_each_entry(sta, ...) will exit immediately. Signed-off-by: Michael Braun <michael-...@fami-braun.de> --- net/mac80211/cfg.c | 7 --- 1 file chan

[PATCH v6 4/4] mac80211: multicast to unicast conversion

2016-10-10 Thread Michael Braun
. This change opts for iterating all BSS stations for finding the stations assigned to this AP/AP_VLAN interface, as there currently is no per AP_VLAN list to iterate and multicast packets are expected to be few. If needed, such a list could be added later. Signed-off-by: Michael Braun <michael-...@f

[PATCH v4] iproute2: macvlan: add "source" mode

2016-10-27 Thread Michael Braun
vlan0 type macvlan macaddr del 00:11:11:11:11:11 ip link set link dev macvlan0 type macvlan macaddr flush ip -details link show dev macvlan0 Based on previous work of Stefan Gula <ste...@gmail.com> Signed-off-by: Michael Braun <michael-...@fami-braun.de> Cc: ste...@gmail.com

[PATCH v5] iproute2: macvlan: add "source" mode

2016-11-22 Thread Michael Braun
vlan0 type macvlan macaddr del 00:11:11:11:11:11 ip link set link dev macvlan0 type macvlan macaddr flush ip -details link show dev macvlan0 Based on previous work of Stefan Gula <ste...@gmail.com> Signed-off-by: Michael Braun <michael-...@fami-braun.de> Cc: ste...@gmail.com

[PATCH v8] mac80211: multicast to unicast conversion

2016-11-22 Thread Michael Braun
the difference if this new option is enabled.) This also doesn't implement the 802.11 DMS (directed multicast service). Signed-off-by: Michael Braun <michael-...@fami-braun.de> -- v8: - remove superflous check - change return type to bool v7: - avoid recursion - style and descript

[PATCH v7 2/2] mac80211: multicast to unicast conversion

2016-10-31 Thread Michael Braun
the difference if this new option is enabled.) This also doesn't implement the 802.11 DMS (directed multicast service). Signed-off-by: Michael Braun <michael-...@fami-braun.de> -- v7: - avoid recursion - style and description v5: - rename bss->unicast to bss->multicast_to_unicast -

[PATCH v7 1/2] nl80211: multicast_to_unicast can be changed while IFF_UP

2016-10-31 Thread Michael Braun
There is no need to prevent toggling multicast_to_unicast while interface is already up. This change simplifies reconfiguration from hostapd. Signed-off-by: Michael Braun <michael-...@fami-braun.de> --- net/wireless/nl80211.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/net/wi