]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
driver: ipvlan: Define common functions to decrease duplicated codes used to add...
authorGao Feng <fgao@ikuai8.com>
Wed, 28 Dec 2016 08:46:51 +0000 (16:46 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Dec 2016 19:23:21 +0000 (14:23 -0500)
commit8667398277afe5312ac6e70589c4c661545179c7
treeee01f00a1a7884c9d10c41aaa6b5ad6b32f5ece7
parentc4907c6ebb184f5038e6227d9a3e23076ee5db63
driver: ipvlan: Define common functions to decrease duplicated codes used to add or del IP address

There are some duplicated codes in ipvlan_add_addr6/4 and
ipvlan_del_addr6/4. Now define two common functions ipvlan_add_addr
and ipvlan_del_addr to decrease the duplicated codes.
It could be helful to maintain the codes.

Signed-off-by: Gao Feng <fgao@ikuai8.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipvlan/ipvlan_main.c