Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixl/if_ixl.c
Show First 20 Lines • Show All 857 Lines • ▼ Show 20 Lines | #endif | ||||
if (status) | if (status) | ||||
device_printf(dev, | device_printf(dev, | ||||
"i40e_shutdown_adminq() failed with status %s\n", | "i40e_shutdown_adminq() failed with status %s\n", | ||||
i40e_stat_str(hw, status)); | i40e_stat_str(hw, status)); | ||||
ixl_pf_qmgr_destroy(&pf->qmgr); | ixl_pf_qmgr_destroy(&pf->qmgr); | ||||
ixl_free_pci_resources(pf); | ixl_free_pci_resources(pf); | ||||
ixl_free_mac_filters(vsi); | ixl_free_mac_filters(vsi); | ||||
if ((!IXL_PF_IN_RECOVERY_MODE(pf)) && | |||||
(!TAILQ_EMPTY(&vsi->sysctl_ctx))) { | |||||
markj: The formatting is wrong: continuing lines should be indendent by four spaces. | |||||
sysctl_ctx_free(&vsi->sysctl_ctx); | |||||
} | |||||
INIT_DBG_DEV(dev, "end"); | INIT_DBG_DEV(dev, "end"); | ||||
return (0); | return (0); | ||||
} | } | ||||
static int | static int | ||||
ixl_if_shutdown(if_ctx_t ctx) | ixl_if_shutdown(if_ctx_t ctx) | ||||
{ | { | ||||
int error = 0; | int error = 0; | ||||
▲ Show 20 Lines • Show All 395 Lines • ▼ Show 20 Lines | ixl_if_queues_free(if_ctx_t ctx) | ||||
if (vsi->tx_queues != NULL) { | if (vsi->tx_queues != NULL) { | ||||
free(vsi->tx_queues, M_IXL); | free(vsi->tx_queues, M_IXL); | ||||
vsi->tx_queues = NULL; | vsi->tx_queues = NULL; | ||||
} | } | ||||
if (vsi->rx_queues != NULL) { | if (vsi->rx_queues != NULL) { | ||||
free(vsi->rx_queues, M_IXL); | free(vsi->rx_queues, M_IXL); | ||||
vsi->rx_queues = NULL; | vsi->rx_queues = NULL; | ||||
} | } | ||||
if (!IXL_PF_IN_RECOVERY_MODE(pf)) | |||||
sysctl_ctx_free(&vsi->sysctl_ctx); | |||||
} | } | ||||
void | void | ||||
ixl_update_link_status(struct ixl_pf *pf) | ixl_update_link_status(struct ixl_pf *pf) | ||||
{ | { | ||||
struct ixl_vsi *vsi = &pf->vsi; | struct ixl_vsi *vsi = &pf->vsi; | ||||
struct i40e_hw *hw = &pf->hw; | struct i40e_hw *hw = &pf->hw; | ||||
u64 baudrate; | u64 baudrate; | ||||
▲ Show 20 Lines • Show All 576 Lines • Show Last 20 Lines |
The formatting is wrong: continuing lines should be indendent by four spaces.