ipvlan: Eliminate duplicated codes with existing function
authorGao Feng <gfree.wind@vip.163.com>
Wed, 6 Dec 2017 11:04:26 +0000 (19:04 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Dec 2017 20:15:29 +0000 (15:15 -0500)
commit24e5992a6baefc026aa8bad02d828cedaf8250b6
treee614a7f7b5752a9b461445e03f4819a42274e6a5
parent9454d9307e05989bc5dd50c023acd51d632fe6f9
ipvlan: Eliminate duplicated codes with existing function

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 <gfree.wind@vip.163.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipvlan/ipvlan_core.c