macvlan: fix missing reference to device_attr_list
authorGioacchino Mazzurco <gmazzurco89@gmail.com>
Wed, 28 May 2014 20:44:21 +0000 (22:44 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 28 May 2014 21:30:16 +0000 (23:30 +0200)
At moment macvlan devices ignore options inherited as device like mtu.

Thanks to suggestions provided by Felix i have done this patch that fix this
iussue by adding the missing reference to device_attr_list in
macvlan_attr_list

Signed-off-by: Gioacchino Mazzurco <gmazzurco89@gmail.com>
macvlan.c

index 9c03cd8..e5a4891 100644 (file)
--- a/macvlan.c
+++ b/macvlan.c
@@ -44,6 +44,9 @@ static const struct blobmsg_policy macvlan_attrs[__MACVLAN_ATTR_MAX] = {
 static const struct uci_blob_param_list macvlan_attr_list = {
        .n_params = __MACVLAN_ATTR_MAX,
        .params = macvlan_attrs,
+
+       .n_next = 1,
+       .next = { &device_attr_list },
 };
 
 struct macvlan_device {