Lines 1785-1795
bnxt_init(if_ctx_t ctx)
Link Here
|
1785 |
struct ifmediareq ifmr; |
1785 |
struct ifmediareq ifmr; |
1786 |
int i; |
1786 |
int i; |
1787 |
int rc; |
1787 |
int rc; |
|
|
1788 |
struct bnxt_vnic_info *vnic = &softc->vnic_info; |
1789 |
struct bnxt_vlan_tag *tag; |
1788 |
|
1790 |
|
1789 |
if (!BNXT_CHIP_P5(softc)) { |
1791 |
if (!BNXT_CHIP_P5(softc)) { |
1790 |
rc = bnxt_hwrm_func_reset(softc); |
1792 |
rc = bnxt_hwrm_func_reset(softc); |
1791 |
if (rc) |
1793 |
if (rc) |
1792 |
return; |
1794 |
return; |
|
|
1795 |
SLIST_FOREACH (tag, &vnic->vlan_tags, next) |
1796 |
{ |
1797 |
tag->filter_id = -1; |
1798 |
} |
1793 |
} else if (softc->is_dev_init) { |
1799 |
} else if (softc->is_dev_init) { |
1794 |
bnxt_stop(ctx); |
1800 |
bnxt_stop(ctx); |
1795 |
} |
1801 |
} |