ethtool: don't call set_channels in drivers if config didn't change
authorJakub Kicinski <kuba@kernel.org>
Fri, 15 May 2020 19:49:02 +0000 (12:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 16 May 2020 20:56:30 +0000 (13:56 -0700)
commit75c36dbb1c3790eab909344b758decce6bb432da
tree1410fe5fb02e10ba1bd995ecc3cdfe4e9e91a8ee
parent4df6ff2a99920254ce8c2a3c418ddabc69ff16fe
ethtool: don't call set_channels in drivers if config didn't change

Don't call drivers if nothing changed. Netlink code already
contains this logic.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Michal Kubecek <mkubecek@suse.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ethtool/ioctl.c