diff options
Diffstat (limited to 'drivers/net/sfc/net_driver.h')
-rw-r--r-- | drivers/net/sfc/net_driver.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/net/sfc/net_driver.h b/drivers/net/sfc/net_driver.h index 13bc1b496da8..bb3d258bd5e8 100644 --- a/drivers/net/sfc/net_driver.h +++ b/drivers/net/sfc/net_driver.h | |||
@@ -497,17 +497,6 @@ enum efx_mac_type { | |||
497 | EFX_XMAC = 2, | 497 | EFX_XMAC = 2, |
498 | }; | 498 | }; |
499 | 499 | ||
500 | static inline enum efx_fc_type efx_fc_resolve(enum efx_fc_type wanted_fc, | ||
501 | unsigned int lpa) | ||
502 | { | ||
503 | BUILD_BUG_ON(EFX_FC_AUTO & (EFX_FC_RX | EFX_FC_TX)); | ||
504 | |||
505 | if (!(wanted_fc & EFX_FC_AUTO)) | ||
506 | return wanted_fc; | ||
507 | |||
508 | return mii_resolve_flowctrl_fdx(mii_advertise_flowctrl(wanted_fc), lpa); | ||
509 | } | ||
510 | |||
511 | /** | 500 | /** |
512 | * struct efx_mac_operations - Efx MAC operations table | 501 | * struct efx_mac_operations - Efx MAC operations table |
513 | * @reconfigure: Reconfigure MAC. Serialised by the mac_lock | 502 | * @reconfigure: Reconfigure MAC. Serialised by the mac_lock |