sfc: Own header for nic-specific sriov functions, single instance of netdev_ops and...
authorShradha Shah <sshah@solarflare.com>
Tue, 5 May 2015 23:55:13 +0000 (00:55 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 9 May 2015 20:16:46 +0000 (16:16 -0400)
commit7fa8d547049aae543a5f21f1fe0e14414f1e7fdc
tree76554b506cb5cf42cb84a049916b23fe1ae00697
parentf926204b8bc978b7222403ddc9ec91bfb0f68428
sfc: Own header for nic-specific sriov functions, single instance of netdev_ops and sriov removed from Falcon code

By putting all the efx_{siena,ef10}_sriov_* declarations in
{siena,ef10}_sriov.h, ensure they cannot be called from nic-generic code.
Also fixes up an instance of this, where mcdi.c was calling
efx_siena_sriov_flr.

The single instance of netdev_ops should call general high level
functions that can then call something adapter specific in efx_nic_type.
We should only do adapter specialisation via efx_nic_type.

Removal of sriov functionality from the Falcon code means that tests
are needed for the presence of some callbacks.

Signed-off-by: Shradha Shah <sshah@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
15 files changed:
drivers/net/ethernet/sfc/Makefile
drivers/net/ethernet/sfc/ef10.c
drivers/net/ethernet/sfc/ef10_sriov.h [new file with mode: 0644]
drivers/net/ethernet/sfc/efx.c
drivers/net/ethernet/sfc/efx.h
drivers/net/ethernet/sfc/falcon.c
drivers/net/ethernet/sfc/farch.c
drivers/net/ethernet/sfc/mcdi.c
drivers/net/ethernet/sfc/net_driver.h
drivers/net/ethernet/sfc/nic.h
drivers/net/ethernet/sfc/siena.c
drivers/net/ethernet/sfc/siena_sriov.c
drivers/net/ethernet/sfc/siena_sriov.h [new file with mode: 0644]
drivers/net/ethernet/sfc/sriov.c [new file with mode: 0644]
drivers/net/ethernet/sfc/sriov.h [new file with mode: 0644]