]> git.karo-electronics.de Git - linux-beck.git/commit
sfc: Move and rename Falcon/Siena common NIC operations
authorBen Hutchings <bhutchings@solarflare.com>
Wed, 21 Aug 2013 18:51:04 +0000 (19:51 +0100)
committerBen Hutchings <bhutchings@solarflare.com>
Wed, 21 Aug 2013 19:19:05 +0000 (20:19 +0100)
commit86094f7f38ff711f3db8497fcb4d2e109100f497
treec9c8d9418b32d0a2abf6220a22328ceeb9130244
parente42c3d85af629697699c89aecba481527a1da898
sfc: Move and rename Falcon/Siena common NIC operations

Add efx_nic_type operations for the many efx_nic functions that need
to be implemented different on EF10.  For now, change most of the
existing efx_nic_*() functions into inline wrappers.  As a later step,
we may be able to improve branch prediction for operations used on the
fast path by copying the pointers into each queue/channel structure.

Move the Falcon/Siena implementations to new file farch.c and rename
the functions and static data to use a prefix of 'efx_farch_'.

Move efx_may_push_tx_desc() to nic.h, as the EF10 TX code will also
use it.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/Makefile
drivers/net/ethernet/sfc/efx.c
drivers/net/ethernet/sfc/falcon.c
drivers/net/ethernet/sfc/farch.c [new file with mode: 0644]
drivers/net/ethernet/sfc/net_driver.h
drivers/net/ethernet/sfc/nic.c
drivers/net/ethernet/sfc/nic.h
drivers/net/ethernet/sfc/siena.c
drivers/net/ethernet/sfc/siena_sriov.c