Skip to content

Commit d19a537

Browse files
ecree-solarflaredavem330
authored andcommitted
sfc_ef100: TX path for EF100 NICs
Includes checksum offload and TSO, so declare those in our netdev features. Signed-off-by: Edward Cree <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent adcfc34 commit d19a537

File tree

5 files changed

+396
-5
lines changed

5 files changed

+396
-5
lines changed

drivers/net/ethernet/sfc/ef100_nic.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,9 @@ static int ef100_ev_process(struct efx_channel *channel, int quota)
263263
case ESE_GZ_EF100_EV_MCDI:
264264
efx_mcdi_process_event(channel, p_event);
265265
break;
266+
case ESE_GZ_EF100_EV_TX_COMPLETION:
267+
ef100_ev_tx(channel, p_event);
268+
break;
266269
case ESE_GZ_EF100_EV_DRIVER:
267270
netif_info(efx, drv, efx->net_dev,
268271
"Driver initiated event " EFX_QWORD_FMT "\n",
@@ -436,10 +439,15 @@ static unsigned int ef100_check_caps(const struct efx_nic *efx,
436439

437440
/* NIC level access functions
438441
*/
442+
#define EF100_OFFLOAD_FEATURES (NETIF_F_HW_CSUM | \
443+
NETIF_F_HIGHDMA | NETIF_F_SG | NETIF_F_FRAGLIST | \
444+
NETIF_F_TSO_ECN | NETIF_F_TSO_MANGLEID | NETIF_F_HW_VLAN_CTAG_TX)
445+
439446
const struct efx_nic_type ef100_pf_nic_type = {
440447
.revision = EFX_REV_EF100,
441448
.is_vf = false,
442449
.probe = ef100_probe_pf,
450+
.offload_features = EF100_OFFLOAD_FEATURES,
443451
.mcdi_max_ver = 2,
444452
.mcdi_request = ef100_mcdi_request,
445453
.mcdi_poll_response = ef100_mcdi_poll_response,

0 commit comments

Comments
 (0)