答复: 答复: [PATCH][net-next] bridge: clean up mtu_set_by_user setting to false and comments

2018-07-13 Thread Li,Rongqing
> This is used to differentiate when auto adjust is used and when user has set > the MTU. > As I already said everything is working as expected and you should not > remove this code. > I see, thank you, and sorry for the noise. -R

Re: 答复: [PATCH][net-next] bridge: clean up mtu_set_by_user setting to false and comments

2018-07-13 Thread Nikolay Aleksandrov
On 13/07/18 12:11, Li,Rongqing wrote: > > >> -邮件原件- >> 发件人: Nikolay Aleksandrov [mailto:niko...@cumulusnetworks.com] >> 发送时间: 2018年7月13日 16:01 >> 收件人: Li,Rongqing ; netdev@vger.kernel.org >> 主题: Re: [PATCH][net-next] bridge: clean up mtu_set_by_u

答复: [PATCH][net-next] bridge: clean up mtu_set_by_user setting to false and comments

2018-07-13 Thread Li,Rongqing
> -邮件原件- > 发件人: Nikolay Aleksandrov [mailto:niko...@cumulusnetworks.com] > 发送时间: 2018年7月13日 16:01 > 收件人: Li,Rongqing ; netdev@vger.kernel.org > 主题: Re: [PATCH][net-next] bridge: clean up mtu_set_by_user setting to > false and comments > > On 13/07/18 09:47, Li

Re: [PATCH][net-next] bridge: clean up mtu_set_by_user setting to false and comments

2018-07-13 Thread Nikolay Aleksandrov
On 13/07/18 09:47, Li RongQing wrote: > Once mtu_set_by_user is set to true, br_mtu_auto_adjust will > not run, and no chance to clear mtu_set_by_user. > ^^ This was by design, there is no error here and no "cleanup" is needed. If you read the ndo_change_mtu() call you'll see the comment: /* this

[PATCH][net-next] bridge: clean up mtu_set_by_user setting to false and comments

2018-07-12 Thread Li RongQing
Once mtu_set_by_user is set to true, br_mtu_auto_adjust will not run, and no chance to clear mtu_set_by_user. and br_mtu_auto_adjust will run only if mtu_set_by_user is false, so not need to set it to false again Cc: Nikolay Aleksandrov Signed-off-by: Li RongQing --- net/bridge/br_device.c | 1