Re: [PATCH ethtool] Fix segfault with cable test and ./configure --disable-netlink

2020-07-19 Thread Andrew Lunn
On Mon, Jul 20, 2020 at 02:12:51AM +0200, Michal Kubecek wrote: > On Fri, Jul 17, 2020 at 12:05:09AM +0200, Andrew Lunn wrote: > > When the netlink interface code is disabled, a stub version of > > netlink_run_handler() is used. This stub version needs to handle the > > case when there is no possib

Re: [PATCH ethtool] Fix segfault with cable test and ./configure --disable-netlink

2020-07-19 Thread Michal Kubecek
On Fri, Jul 17, 2020 at 12:05:09AM +0200, Andrew Lunn wrote: > When the netlink interface code is disabled, a stub version of > netlink_run_handler() is used. This stub version needs to handle the > case when there is no possibility for a command to fall back to the > IOCTL call. The two cable test

[PATCH ethtool] Fix segfault with cable test and ./configure --disable-netlink

2020-07-16 Thread Andrew Lunn
When the netlink interface code is disabled, a stub version of netlink_run_handler() is used. This stub version needs to handle the case when there is no possibility for a command to fall back to the IOCTL call. The two cable tests commands have no such fallback, and if we don't handle this, ethtoo