diff options
author | Edward Cree <ecree@solarflare.com> | 2020-09-07 17:14:52 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-09-07 14:46:13 -0700 |
commit | 4404c0898dc116b0d173620ed546609fab83007a (patch) | |
tree | 27fbed89793e9fc6781f2cc29e4471db8decaa0e /drivers/net/ethernet/sfc/ef100_nic.c | |
parent | sfc: remove phy_op indirection (diff) | |
download | linux-dev-4404c0898dc116b0d173620ed546609fab83007a.tar.xz linux-dev-4404c0898dc116b0d173620ed546609fab83007a.zip |
sfc: add ethtool ops and miscellaneous ndos to EF100
Mostly just calls to existing common functions.
Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/ethernet/sfc/ef100_nic.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sfc/ef100_nic.c b/drivers/net/ethernet/sfc/ef100_nic.c index 9cf5b8f8fab9..fb7752d62ce0 100644 --- a/drivers/net/ethernet/sfc/ef100_nic.c +++ b/drivers/net/ethernet/sfc/ef100_nic.c @@ -684,7 +684,7 @@ static unsigned int ef100_check_caps(const struct efx_nic *efx, /* NIC level access functions */ #define EF100_OFFLOAD_FEATURES (NETIF_F_HW_CSUM | NETIF_F_RXCSUM | \ - NETIF_F_HIGHDMA | NETIF_F_SG | NETIF_F_FRAGLIST | \ + NETIF_F_HIGHDMA | NETIF_F_SG | NETIF_F_FRAGLIST | NETIF_F_NTUPLE | \ NETIF_F_RXHASH | NETIF_F_RXFCS | NETIF_F_TSO_ECN | NETIF_F_RXALL | \ NETIF_F_TSO_MANGLEID | NETIF_F_HW_VLAN_CTAG_TX) @@ -757,6 +757,7 @@ const struct efx_nic_type ef100_pf_nic_type = { .rx_restore_rss_contexts = efx_mcdi_rx_restore_rss_contexts, .reconfigure_mac = ef100_reconfigure_mac, + .reconfigure_port = efx_mcdi_port_reconfigure, .test_nvram = efx_new_mcdi_nvram_test_all, .describe_stats = ef100_describe_stats, .start_stats = efx_mcdi_mac_start_stats, @@ -1160,6 +1161,10 @@ static int ef100_probe_main(struct efx_nic *efx) rc = efx_mcdi_reset(efx, RESET_TYPE_ALL); if (rc) goto fail; + /* Enable event logging */ + rc = efx_mcdi_log_ctrl(efx, true, false, 0); + if (rc) + goto fail; rc = efx_get_pf_index(efx, &nic_data->pf_index); if (rc) |