sfc: Make most filter operations NIC-type-specific
Aside from accelerated RFS, there is almost nothing that can be shared between the filter table implementations for the Falcon architecture and EF10. Move the few shared functions into efx.c and rx.c and the rest into farch.c. Introduce efx_nic_type operations for the implementation and inline wrapper functions that call these. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
This commit is contained in:
@@ -736,6 +736,21 @@ const struct efx_nic_type siena_a0_nic_type = {
|
||||
.ev_process = efx_farch_ev_process,
|
||||
.ev_read_ack = efx_farch_ev_read_ack,
|
||||
.ev_test_generate = efx_farch_ev_test_generate,
|
||||
.filter_table_probe = efx_farch_filter_table_probe,
|
||||
.filter_table_restore = efx_farch_filter_table_restore,
|
||||
.filter_table_remove = efx_farch_filter_table_remove,
|
||||
.filter_update_rx_scatter = efx_farch_filter_update_rx_scatter,
|
||||
.filter_insert = efx_farch_filter_insert,
|
||||
.filter_remove_safe = efx_farch_filter_remove_safe,
|
||||
.filter_get_safe = efx_farch_filter_get_safe,
|
||||
.filter_clear_rx = efx_farch_filter_clear_rx,
|
||||
.filter_count_rx_used = efx_farch_filter_count_rx_used,
|
||||
.filter_get_rx_id_limit = efx_farch_filter_get_rx_id_limit,
|
||||
.filter_get_rx_ids = efx_farch_filter_get_rx_ids,
|
||||
#ifdef CONFIG_RFS_ACCEL
|
||||
.filter_rfs_insert = efx_farch_filter_rfs_insert,
|
||||
.filter_rfs_expire_one = efx_farch_filter_rfs_expire_one,
|
||||
#endif
|
||||
|
||||
.revision = EFX_REV_SIENA_A0,
|
||||
.txd_ptr_tbl_base = FR_BZ_TX_DESC_PTR_TBL,
|
||||
@@ -752,4 +767,5 @@ const struct efx_nic_type siena_a0_nic_type = {
|
||||
.offload_features = (NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM |
|
||||
NETIF_F_RXHASH | NETIF_F_NTUPLE),
|
||||
.mcdi_max_ver = 1,
|
||||
.max_rx_ip_filters = FR_BZ_RX_FILTER_TBL0_ROWS,
|
||||
};
|
||||
|
Reference in New Issue
Block a user