Re: [PATCH next 2/3] ipvlan: mode is u16
From: Mahesh Bandewar <hidden>
Date: 2016-02-08 22:15:14
On Sun, Feb 7, 2016 at 11:19 AM, David Miller [off-list ref] wrote:
From: Mahesh Bandewar <redacted> Date: Tue, 2 Feb 2016 11:20:30 -0800quoted
From: Mahesh Bandewar <redacted> The mode argument was erronusly defined as u32 but it has always been u16. Signed-off-by: Mahesh Bandewar <redacted>This patch is changing more than this. Specifically it is invoking ipvlan_set_port_mode() instead of assigning port->mode directly in ipvlan_link_new(). That minimally needs to be documented in the commit log message. But I also wonder if for some reason in this conect the direct assignment happens to be fine. That's pretty much why you should explain things.
Directly assigning does serve the same purpose, however when there is a helper to do just that (and other things in future) it would help keep all related things at one place avoiding errors in future. Since it's a minor improvement I did not mention that into the commit log. I'll update the commit log and resend.