]> git.baikalelectronics.ru Git - kernel.git/commit
ethtool: Add reset operation
authorBen Hutchings <bhutchings@solarflare.com>
Mon, 5 Oct 2009 10:59:58 +0000 (10:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Oct 2009 08:10:44 +0000 (01:10 -0700)
commita8a3e5c330cbfa47a21103f49fbf0065e3327a93
treeeece04666dfccff368e7d6fc6665bd328987fd46
parentf9db63fb602aabaedb7c80a33ba001c47ad5de3e
ethtool: Add reset operation

After updating firmware stored in flash, users may wish to reset the
relevant hardware and start the new firmware immediately.  This should
not be completely automatic as it may be disruptive.

A selective reset may also be useful for debugging or diagnostics.

This adds a separate reset operation which takes flags indicating the
components to be reset.  Drivers are allowed to reset only a subset of
those requested, and must indicate the actual subset.  This allows the
use of generic component masks and some future expansion.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/ethtool.h
net/core/ethtool.c