summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2012-07-11 16:45:37 +0400
committerKozlov Dmitry <xeb@mail.ru>2012-07-11 16:45:37 +0400
commit27b57115eb324d96088bb3fdfc0953a005a8c271 (patch)
treeaa314ba20f9a866b369b70b2f6f19ffcebf053c9 /drivers
parentdb98faab0495c752f3318ae8b7c7c6515c3ff1a8 (diff)
downloadaccel-ppp-xebd-27b57115eb324d96088bb3fdfc0953a005a8c271.tar.gz
accel-ppp-xebd-27b57115eb324d96088bb3fdfc0953a005a8c271.zip
ipoe: implemented unit cache
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ipoe/ipoe.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/ipoe/ipoe.c b/drivers/ipoe/ipoe.c
index d5f52b3..18f0f70 100644
--- a/drivers/ipoe/ipoe.c
+++ b/drivers/ipoe/ipoe.c
@@ -1202,6 +1202,13 @@ static int ipoe_nl_cmd_modify(struct sk_buff *skb, struct genl_info *info)
old_dev = ses->link_dev;
ses->link_dev = link_dev;
+
+ if (link_dev) {
+ ses->dev->features = link_dev->features;
+ memcpy(dev->dev_addr, link_dev->dev_addr, ETH_ALEN);
+ memcpy(dev->broadcast, link_dev->broadcast, ETH_ALEN);
+ }
+
if (old_dev)
dev_put(old_dev);
}