mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
IfAPI: Finish conversion of bnxt(4) to IfAPI.
Sponsored by: Juniper Networks, Inc.
This commit is contained in:
parent
4519a073c3
commit
56c1eafe50
2 changed files with 3 additions and 3 deletions
|
|
@ -1227,8 +1227,8 @@ bnxt_create_config_sysctls_pre(struct bnxt_softc *softc)
|
|||
SYSCTL_ADD_PROC(ctx, children, OID_AUTO, "vlan_strip",
|
||||
CTLTYPE_INT | CTLFLAG_RWTUN | CTLFLAG_MPSAFE, softc, 0,
|
||||
bnxt_vlan_strip_sysctl, "I", "strip VLAN tag in the RX path");
|
||||
SYSCTL_ADD_STRING(ctx, children, OID_AUTO, "if_name", CTLFLAG_RD,
|
||||
iflib_get_ifp(softc->ctx)->if_xname, 0, "interface name");
|
||||
SYSCTL_ADD_CONST_STRING(ctx, children, OID_AUTO, "if_name", CTLFLAG_RD,
|
||||
if_name(iflib_get_ifp(softc->ctx)), "interface name");
|
||||
|
||||
SYSCTL_ADD_PROC(ctx, children, OID_AUTO, "intr_coal_rx_usecs",
|
||||
CTLTYPE_INT | CTLFLAG_RWTUN | CTLFLAG_MPSAFE, softc, 0,
|
||||
|
|
|
|||
|
|
@ -1213,7 +1213,7 @@ struct bnxt_softc *bnxt_find_dev(uint32_t domain, uint32_t bus, uint32_t dev_fn,
|
|||
|
||||
SLIST_FOREACH(sc, &pf_list, next) {
|
||||
/* get the softc reference based on device name */
|
||||
if (dev_name && !strncmp(dev_name, iflib_get_ifp(sc->softc->ctx)->if_xname, BNXT_MAX_STR)) {
|
||||
if (dev_name && !strncmp(dev_name, if_name(iflib_get_ifp(sc->softc->ctx)), BNXT_MAX_STR)) {
|
||||
return sc->softc;
|
||||
}
|
||||
/* get the softc reference based on domain,bus,device,function */
|
||||
|
|
|
|||
Loading…
Reference in a new issue