[PATCH v3] ipvlan: call netdevice notifier when master mac address changed

2018-05-14 Thread liuqifa
From: Keefe Liu When master device's mac has been changed, the commit 32c10bbfe914 ("ipvlan: always use the current L2 addr of the master") makes the IPVlan devices's mac changed also, but it doesn't do related works such as flush the IPVlan devices's arp table. Signed-off-by: Keefe Liu --- dr

[PATCH v2] ipvlan: flush arp table when mac address changed

2018-05-14 Thread liuqifa
From: Keefe Liu When master device's mac has been changed, the commit <32c10bbfe914> "ipvlan: always use the current L2 addr of the master" makes the IPVlan devices's mac changed also, but it doesn't flush the IPVlan's arp table. Signed-off-by: Keefe Liu --- drivers/net/ipvlan/ipvlan_main.c |

答复: [PATCH] ipvlan: flush arp table when mac address changed

2018-05-14 Thread liuqifa
Hi, > > Hi, > > On Sat, 2018-05-12 at 19:00 +0800, liuq...@huawei.com wrote: > > From: Keefe Liu > > > > When master device's mac has been changed, the commit <32c10bbfe914> > > "ipvlan: always use the current L2 addr of the master" makes the > > IPVlan devices's mac changed also, but it doesn't

[PATCH] ipvlan: flush arp table when mac address changed

2018-05-12 Thread liuqifa
From: Keefe Liu When master device's mac has been changed, the commit <32c10bbfe914> "ipvlan: always use the current L2 addr of the master" makes the IPVlan devices's mac changed also, but it doesn't flush the IPVlan's arp table. Signed-off-by: Keefe Liu --- drivers/net/ipvlan/ipvlan_main.c |

[PATCH V2] ipvlan: fix ipvlan MTU limits

2018-01-09 Thread liuqifa
From: Keefe Liu The MTU of ipvlan interface should not bigger than the phy device, When we run following scripts, we will find there are some problems. Step1: ip link add link eth0 name ipv1 type ipvlan mode l2 ip netns add net1 ip link set dev ipv1 netns net1 Step2:

Re: [PATCH] ipvlan: fix ipvlan MTU limits

2018-01-09 Thread liuqifa
gt; + .ndo_change_mtu = ipvlan_change_mtu, > > .ndo_fix_features = ipvlan_fix_features, > > .ndo_change_rx_flags= ipvlan_change_rx_flags, > > .ndo_set_rx_mode= ipvlan_set_multicast_mac_filter, > > @@ -680,6 +692,8 @@ void

[PATCH] ipvlan: fix ipvlan MTU limits

2018-01-08 Thread liuqifa
From: Keefe Liu The MTU of ipvlan interface should not bigger than the phy device, When we run following scripts, we will find there are some problems. Step1: ip link add link eth0 name ipv1 type ipvlan mode l2 ip netns add net1 ip link set dev ipv1 netns net1 Step2:

Re: [PATCH] ipvlan: fix ipv6 outbound device

2017-11-09 Thread liuqifa
That's a good question. Recently, I am researching how to use ipvlan, I found when using L3 mode, the packet from the ipvlan slave interface can only get out from the phy device which the slave interface attached, and I found this is assigning the flowi4's output device result, so I tried to don

[PATCH] ipvlan: fix ipv6 outbound device

2017-11-09 Thread liuqifa
From: Keefe Liu When process the outbound packet of ipv6, we should assign the master device to output device other than input device. Signed-off-by: Keefe Liu --- drivers/net/ipvlan/ipvlan_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ipvlan/ipvlan_cor