aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/cxgbe/t4_main.c
diff options
context:
space:
mode:
authorNavdeep Parhar <np@FreeBSD.org>2021-02-19 21:47:18 +0000
committerNavdeep Parhar <np@FreeBSD.org>2021-02-19 22:23:58 +0000
commitc91dda5ad923f24ef2e538b8dc180fa98598b4db (patch)
tree02cd51cb15e0aadc64676e32e835f89eaa0d8676 /sys/dev/cxgbe/t4_main.c
parent7ac8040a99319456c3225cd5166390f5bd172fdf (diff)
downloadsrc-c91dda5ad923f24ef2e538b8dc180fa98598b4db.tar.gz
src-c91dda5ad923f24ef2e538b8dc180fa98598b4db.zip
cxgbe(4): Add a driver ioctl to set the filter mask.
Allow the filter mask (aka the hashfilter mode when hashfilters are in use) to be set any time it is safe to do so. The requested mask must be a subset of the filter mode already. The driver will not change the mode or ingress config just to support a new mask. MFC after: 2 weeks Sponsored by: Chelsio Communications
Diffstat (limited to 'sys/dev/cxgbe/t4_main.c')
-rw-r--r--sys/dev/cxgbe/t4_main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/cxgbe/t4_main.c b/sys/dev/cxgbe/t4_main.c
index f64d349b46ae..3594db2ea136 100644
--- a/sys/dev/cxgbe/t4_main.c
+++ b/sys/dev/cxgbe/t4_main.c
@@ -10970,6 +10970,9 @@ t4_ioctl(struct cdev *dev, unsigned long cmd, caddr_t data, int fflag,
case CHELSIO_T4_SET_FILTER_MODE:
rc = set_filter_mode(sc, *(uint32_t *)data);
break;
+ case CHELSIO_T4_SET_FILTER_MASK:
+ rc = set_filter_mask(sc, *(uint32_t *)data);
+ break;
case CHELSIO_T4_GET_FILTER:
rc = get_filter(sc, (struct t4_filter *)data);
break;