svn commit: r311093 - stable/10/sys/dev/sfxge/common
Andrew Rybchenko
arybchik at FreeBSD.org
Mon Jan 2 09:47:36 UTC 2017
Author: arybchik
Date: Mon Jan 2 09:47:35 2017
New Revision: 311093
URL: https://svnweb.freebsd.org/changeset/base/311093
Log:
MFC r310811
sfxge(4): cleanup: remove now-unused function flags
Submitted by: Mark Spender <mspender at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
Modified:
stable/10/sys/dev/sfxge/common/efx.h
stable/10/sys/dev/sfxge/common/efx_mcdi.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/dev/sfxge/common/efx.h
==============================================================================
--- stable/10/sys/dev/sfxge/common/efx.h Mon Jan 2 09:46:39 2017 (r311092)
+++ stable/10/sys/dev/sfxge/common/efx.h Mon Jan 2 09:47:35 2017 (r311093)
@@ -128,11 +128,6 @@ typedef struct efx_rxq_s efx_rxq_t;
typedef struct efx_nic_s efx_nic_t;
-#define EFX_NIC_FUNC_PRIMARY 0x00000001
-#define EFX_NIC_FUNC_LINKCTRL 0x00000002
-#define EFX_NIC_FUNC_TRUSTED 0x00000004
-
-
extern __checkReturn efx_rc_t
efx_nic_create(
__in efx_family_t family,
@@ -1100,7 +1095,6 @@ typedef struct efx_nic_cfg_s {
unsigned int enc_features;
uint8_t enc_mac_addr[6];
uint8_t enc_port; /* PHY port number */
- uint32_t enc_func_flags;
uint32_t enc_intr_vec_base;
uint32_t enc_intr_limit;
uint32_t enc_evq_limit;
Modified: stable/10/sys/dev/sfxge/common/efx_mcdi.c
==============================================================================
--- stable/10/sys/dev/sfxge/common/efx_mcdi.c Mon Jan 2 09:46:39 2017 (r311092)
+++ stable/10/sys/dev/sfxge/common/efx_mcdi.c Mon Jan 2 09:47:35 2017 (r311093)
@@ -1184,11 +1184,9 @@ efx_mcdi_drv_attach(
__in efx_nic_t *enp,
__in boolean_t attach)
{
- efx_nic_cfg_t *encp = &(enp->en_nic_cfg);
efx_mcdi_req_t req;
uint8_t payload[MAX(MC_CMD_DRV_ATTACH_IN_LEN,
MC_CMD_DRV_ATTACH_EXT_OUT_LEN)];
- uint32_t flags;
efx_rc_t rc;
(void) memset(payload, 0, sizeof (payload));
@@ -1219,36 +1217,8 @@ efx_mcdi_drv_attach(
goto fail2;
}
- if (attach == B_FALSE) {
- flags = 0;
- } else if (enp->en_family == EFX_FAMILY_SIENA) {
- efx_mcdi_iface_t *emip = &(enp->en_mcdi.em_emip);
-
- /* Create synthetic privileges for Siena functions */
- flags = EFX_NIC_FUNC_LINKCTRL | EFX_NIC_FUNC_TRUSTED;
- if (emip->emi_port == 1)
- flags |= EFX_NIC_FUNC_PRIMARY;
- } else {
- EFX_STATIC_ASSERT(EFX_NIC_FUNC_PRIMARY ==
- (1u << MC_CMD_DRV_ATTACH_EXT_OUT_FLAG_PRIMARY));
- EFX_STATIC_ASSERT(EFX_NIC_FUNC_LINKCTRL ==
- (1u << MC_CMD_DRV_ATTACH_EXT_OUT_FLAG_LINKCTRL));
- EFX_STATIC_ASSERT(EFX_NIC_FUNC_TRUSTED ==
- (1u << MC_CMD_DRV_ATTACH_EXT_OUT_FLAG_TRUSTED));
-
- /* Save function privilege flags (EF10 and later) */
- if (req.emr_out_length_used < MC_CMD_DRV_ATTACH_EXT_OUT_LEN) {
- rc = EMSGSIZE;
- goto fail3;
- }
- flags = MCDI_OUT_DWORD(req, DRV_ATTACH_EXT_OUT_FUNC_FLAGS);
- }
- encp->enc_func_flags = flags;
-
return (0);
-fail3:
- EFSYS_PROBE(fail3);
fail2:
EFSYS_PROBE(fail2);
fail1:
More information about the svn-src-stable
mailing list