]> git.baikalelectronics.ru Git - kernel.git/commit
veth: implement support for set_channel ethtool op
authorPaolo Abeni <pabeni@redhat.com>
Tue, 20 Jul 2021 08:41:50 +0000 (10:41 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Jul 2021 13:11:18 +0000 (06:11 -0700)
commit4b5bf086ea49daacc5335f723f88dfb2c406e5e1
treec2ac1a7f7a92478c19dc720a820178001b1a1606
parent957f926df601807c2b6b76bef74f1f931340f50d
veth: implement support for set_channel ethtool op

This change implements the set_channel() ethtool operation,
preserving the current defaults values and allowing up set
the number of queues in the range set ad device creation
time.

The update operation tries hard to leave the device in a
consistent status in case of errors.

RFC v1 -> RFC v2:
 - don't flip device status on set_channel()
 - roll-back the changes if possible on error - Jackub

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/veth.c