Re: [PATCH net-next] macvlan: validate setting of multiple remote source MAC addresses

2020-08-17 Thread David Miller
From: Alvin Šipraga Date: Mon, 17 Aug 2020 15:58:59 +0200 > @@ -1269,6 +1269,9 @@ static void macvlan_port_destroy(struct net_device *dev) > static int macvlan_validate(struct nlattr *tb[], struct nlattr *data[], > struct netlink_ext_ack *extack) > { > + int rem, l

[PATCH net-next] macvlan: validate setting of multiple remote source MAC addresses

2020-08-17 Thread Alvin Šipraga
Remote source MAC addresses can be set on a 'source mode' macvlan interface via the IFLA_MACVLAN_MACADDR_DATA attribute. This commit tightens the validation of these MAC addresses to match the validation already performed when setting or adding a single MAC address via the IFLA_MACVLAN_MACADDR attr