Re: [PATCH] net: make ->ndo_get_phys_port_name accept 32-bit len

2017-10-08 Thread David Miller
From: Jakub Kicinski Date: Sun, 8 Oct 2017 18:25:45 -0700 > On Sun, 8 Oct 2017 01:19:17 +0300, Alexey Dobriyan wrote: >> Buffer length passed into this hook is always IFNAMSIZ which is 16. >> >> Code savings on x86_64: >> >> add/remove: 0/0 grow/shrink: 1/9

Re: [PATCH] net: make ->ndo_get_phys_port_name accept 32-bit len

2017-10-08 Thread Jakub Kicinski
On Sun, 8 Oct 2017 01:19:17 +0300, Alexey Dobriyan wrote: > Buffer length passed into this hook is always IFNAMSIZ which is 16. > > Code savings on x86_64: > > add/remove: 0/0 grow/shrink: 1/9 up/down: 2/-45 (-43) > function old new delta >

[PATCH] net: make ->ndo_get_phys_port_name accept 32-bit len

2017-10-07 Thread Alexey Dobriyan
Buffer length passed into this hook is always IFNAMSIZ which is 16. Code savings on x86_64: add/remove: 0/0 grow/shrink: 1/9 up/down: 2/-45 (-43) function old new delta rocker_cmd_get_port_settings_phys_name_proc 179 181