]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: allow ethtool selftest and MC reboot to complete on an unprivileged function
authorDaniel Pieczko <dpieczko@solarflare.com>
Fri, 31 Jul 2015 10:14:54 +0000 (11:14 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 Jul 2015 22:32:05 +0000 (15:32 -0700)
commit21c750e88e2df27483d75460e783ed8555e55fd4
tree32c53a8432811ec0173693349e15103272440f9b
parent9dc6f88643d58e528a12968ea3849e615e10680a
sfc: allow ethtool selftest and MC reboot to complete on an unprivileged function

The policy in the net driver is to attempt MCDI commands and
then handle any EPERM error codes appropriately when returned
by unprivileged functions.
The ethtool selftest contains some tests which are useful on
an unprivileged function, such as the event queue interrupt
tests, but other tests cannot be performed as the function
does not have the required permissions.

If a test returns -EPERM, act as though the test was not run
and continue.

Signed-off-by: Shradha Shah <sshah@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef10.c
drivers/net/ethernet/sfc/selftest.c