Re: [PATCHv2 net] ipvlan: call dev_change_flags when ipvlan mode is reset

2018-07-02 Thread David Miller
From: Hangbin Liu Date: Sun, 1 Jul 2018 16:21:21 +0800 > After we change the ipvlan mode from l3 to l2, or vice versa, we only > reset IFF_NOARP flag, but don't flush the ARP table cache, which will > cause eth->h_dest to be equal to eth->h_source in ipvlan_xmit_mode_l2(). > Then the message wil

[PATCHv2 net] ipvlan: call dev_change_flags when ipvlan mode is reset

2018-07-01 Thread Hangbin Liu
After we change the ipvlan mode from l3 to l2, or vice versa, we only reset IFF_NOARP flag, but don't flush the ARP table cache, which will cause eth->h_dest to be equal to eth->h_source in ipvlan_xmit_mode_l2(). Then the message will not come out of host. Here is the reproducer on local host: ip