diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2012-07-11 16:45:37 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2012-07-11 16:45:37 +0400 |
commit | 27b57115eb324d96088bb3fdfc0953a005a8c271 (patch) | |
tree | aa314ba20f9a866b369b70b2f6f19ffcebf053c9 /drivers | |
parent | db98faab0495c752f3318ae8b7c7c6515c3ff1a8 (diff) | |
download | accel-ppp-xebd-27b57115eb324d96088bb3fdfc0953a005a8c271.tar.gz accel-ppp-xebd-27b57115eb324d96088bb3fdfc0953a005a8c271.zip |
ipoe: implemented unit cache
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ipoe/ipoe.c | 7 |
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); } |