Re: [PATCH net-next] ipvlan: Add new func ipvlan_is_valid_dev instead of duplicated codes

2017-12-03 Thread David Miller
From: gfree.w...@vip.163.com Date: Fri, 1 Dec 2017 16:33:03 +0800 > From: Gao Feng > > There are multiple duplicated condition checks in the current codes, so > I add the new func ipvlan_is_valid_dev instead of the duplicated codes to > check if the netdev is real ipvlan dev. > > Signed-off-by

[PATCH net-next] ipvlan: Add new func ipvlan_is_valid_dev instead of duplicated codes

2017-12-01 Thread gfree . wind
From: Gao Feng There are multiple duplicated condition checks in the current codes, so I add the new func ipvlan_is_valid_dev instead of the duplicated codes to check if the netdev is real ipvlan dev. Signed-off-by: Gao Feng --- drivers/net/ipvlan/ipvlan_main.c | 33 +--