Re: [PATCH net-next] ipvlan: Eliminate duplicated codes with existing function

2017-12-06 Thread David Miller
From: gfree.w...@vip.163.com Date: Wed, 6 Dec 2017 19:04:26 +0800 > From: Gao Feng > > The recv flow of ipvlan l2 mode performs as same as l3 mode for > non-multicast packet, so use the existing func ipvlan_handle_mode_l3 > instead of these duplicated statements in non-multicast case. > > Sign

[PATCH net-next] ipvlan: Eliminate duplicated codes with existing function

2017-12-06 Thread gfree . wind
From: Gao Feng The recv flow of ipvlan l2 mode performs as same as l3 mode for non-multicast packet, so use the existing func ipvlan_handle_mode_l3 instead of these duplicated statements in non-multicast case. Signed-off-by: Gao Feng --- drivers/net/ipvlan/ipvlan_core.c | 13 ++--- 1 f