if_bnxt: Remove sysctl node vlan_only which is not being used
Removed sysctl node vlan_only which is not being used after migrating from l2_set_rx_mask to l2_filter_alloc. Reviewed by: imp Differential Revsion: https://reviews.freebsd.org/D36444
This commit is contained in:
parent
91fcacc355
commit
72e9dbb58c
@ -408,7 +408,6 @@ struct bnxt_vnic_info {
|
|||||||
uint16_t mru;
|
uint16_t mru;
|
||||||
|
|
||||||
uint32_t rx_mask;
|
uint32_t rx_mask;
|
||||||
bool vlan_only;
|
|
||||||
struct iflib_dma_info mc_list;
|
struct iflib_dma_info mc_list;
|
||||||
int mc_list_count;
|
int mc_list_count;
|
||||||
#define BNXT_MAX_MC_ADDRS 16
|
#define BNXT_MAX_MC_ADDRS 16
|
||||||
|
@ -36,7 +36,6 @@ __FBSDID("$FreeBSD$");
|
|||||||
#include "bnxt_hwrm.h"
|
#include "bnxt_hwrm.h"
|
||||||
#include "bnxt_sysctl.h"
|
#include "bnxt_sysctl.h"
|
||||||
|
|
||||||
static int bnxt_vlan_only_sysctl(SYSCTL_HANDLER_ARGS);
|
|
||||||
/*
|
/*
|
||||||
* We want to create:
|
* We want to create:
|
||||||
* dev.bnxt.0.hwstats.txq0
|
* dev.bnxt.0.hwstats.txq0
|
||||||
@ -1388,45 +1387,10 @@ bnxt_create_hw_lro_sysctls(struct bnxt_softc *softc)
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
static int
|
|
||||||
bnxt_vlan_only_sysctl(SYSCTL_HANDLER_ARGS) {
|
|
||||||
struct bnxt_softc *softc = arg1;
|
|
||||||
int rc;
|
|
||||||
int val;
|
|
||||||
|
|
||||||
if (softc == NULL)
|
|
||||||
return EBUSY;
|
|
||||||
|
|
||||||
val = softc->vnic_info.vlan_only;
|
|
||||||
rc = sysctl_handle_int(oidp, &val, 0, req);
|
|
||||||
if (rc || !req->newptr)
|
|
||||||
return rc;
|
|
||||||
|
|
||||||
if (val)
|
|
||||||
val = 1;
|
|
||||||
|
|
||||||
if (val != softc->vnic_info.vlan_only) {
|
|
||||||
softc->vnic_info.vlan_only = val;
|
|
||||||
if (if_getdrvflags(iflib_get_ifp(softc->ctx)) & IFF_DRV_RUNNING)
|
|
||||||
rc = bnxt_hwrm_cfa_l2_set_rx_mask(softc,
|
|
||||||
&softc->vnic_info);
|
|
||||||
}
|
|
||||||
|
|
||||||
return rc;
|
|
||||||
}
|
|
||||||
|
|
||||||
int
|
int
|
||||||
bnxt_create_config_sysctls_post(struct bnxt_softc *softc)
|
bnxt_create_config_sysctls_post(struct bnxt_softc *softc)
|
||||||
{
|
{
|
||||||
struct sysctl_ctx_list *ctx = device_get_sysctl_ctx(softc->dev);
|
/* Nothing for now, meant for future expansion */
|
||||||
struct sysctl_oid_list *children;
|
|
||||||
|
|
||||||
children = SYSCTL_CHILDREN(device_get_sysctl_tree(softc->dev));
|
|
||||||
|
|
||||||
SYSCTL_ADD_PROC(ctx, children, OID_AUTO, "vlan_only",
|
|
||||||
CTLTYPE_INT | CTLFLAG_RWTUN | CTLFLAG_MPSAFE, softc, 0,
|
|
||||||
bnxt_vlan_only_sysctl, "I",
|
|
||||||
"require vlan tag on received packets when vlan is enabled");
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user