aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sfxge/common/efx_filter.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/sfxge/common/efx_filter.c')
-rw-r--r--sys/dev/sfxge/common/efx_filter.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/dev/sfxge/common/efx_filter.c b/sys/dev/sfxge/common/efx_filter.c
index f5f6307c3cb0..06ca29a14813 100644
--- a/sys/dev/sfxge/common/efx_filter.c
+++ b/sys/dev/sfxge/common/efx_filter.c
@@ -71,7 +71,7 @@ falconsiena_filter_supported_filters(
#endif /* EFSYS_OPT_SIENA */
#if EFSYS_OPT_SIENA
-static efx_filter_ops_t __efx_filter_siena_ops = {
+static const efx_filter_ops_t __efx_filter_siena_ops = {
falconsiena_filter_init, /* efo_init */
falconsiena_filter_fini, /* efo_fini */
falconsiena_filter_restore, /* efo_restore */
@@ -83,7 +83,7 @@ static efx_filter_ops_t __efx_filter_siena_ops = {
#endif /* EFSYS_OPT_SIENA */
#if EFSYS_OPT_HUNTINGTON || EFSYS_OPT_MEDFORD
-static efx_filter_ops_t __efx_filter_ef10_ops = {
+static const efx_filter_ops_t __efx_filter_ef10_ops = {
ef10_filter_init, /* efo_init */
ef10_filter_fini, /* efo_fini */
ef10_filter_restore, /* efo_restore */
@@ -99,7 +99,7 @@ efx_filter_insert(
__in efx_nic_t *enp,
__inout efx_filter_spec_t *spec)
{
- efx_filter_ops_t *efop = enp->en_efop;
+ const efx_filter_ops_t *efop = enp->en_efop;
EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_FILTER);
EFSYS_ASSERT3P(spec, !=, NULL);
@@ -113,7 +113,7 @@ efx_filter_remove(
__in efx_nic_t *enp,
__inout efx_filter_spec_t *spec)
{
- efx_filter_ops_t *efop = enp->en_efop;
+ const efx_filter_ops_t *efop = enp->en_efop;
EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_FILTER);
EFSYS_ASSERT3P(spec, !=, NULL);
@@ -149,7 +149,7 @@ fail1:
efx_filter_init(
__in efx_nic_t *enp)
{
- efx_filter_ops_t *efop;
+ const efx_filter_ops_t *efop;
efx_rc_t rc;
/* Check that efx_filter_spec_t is 64 bytes. */
@@ -162,19 +162,19 @@ efx_filter_init(
switch (enp->en_family) {
#if EFSYS_OPT_SIENA
case EFX_FAMILY_SIENA:
- efop = (efx_filter_ops_t *)&__efx_filter_siena_ops;
+ efop = &__efx_filter_siena_ops;
break;
#endif /* EFSYS_OPT_SIENA */
#if EFSYS_OPT_HUNTINGTON
case EFX_FAMILY_HUNTINGTON:
- efop = (efx_filter_ops_t *)&__efx_filter_ef10_ops;
+ efop = &__efx_filter_ef10_ops;
break;
#endif /* EFSYS_OPT_HUNTINGTON */
#if EFSYS_OPT_MEDFORD
case EFX_FAMILY_MEDFORD:
- efop = (efx_filter_ops_t *)&__efx_filter_ef10_ops;
+ efop = &__efx_filter_ef10_ops;
break;
#endif /* EFSYS_OPT_MEDFORD */