]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
sfc: refactor code in efx_ef10_set_mac_address()
authorDaniel Pieczko <dpieczko@solarflare.com>
Tue, 7 Jul 2015 10:37:00 +0000 (11:37 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Jul 2015 23:07:33 +0000 (16:07 -0700)
commit9e9f665a18008999e749bd41394efcbf5c37a726
tree56f4a76f76ae951e6f0edd5d68c8b0d26a1ad655
parentb5a983f3141239b5b0b4a4e66efa31f8a26354b8
sfc: refactor code in efx_ef10_set_mac_address()

Re-organize the structure of error handling to avoid having
to duplicate the netif_err() around the ifdefs.

The only change to the behaviour of the error-handling is that
the PF's data structure to record VF details should only be
updated if the original command succeeded.

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