aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/cxgbe/t4_ioctl.h
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_ioctl.h
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_ioctl.h')
-rw-r--r--sys/dev/cxgbe/t4_ioctl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/cxgbe/t4_ioctl.h b/sys/dev/cxgbe/t4_ioctl.h
index 4f0a71683ef0..ff2c5ef80a14 100644
--- a/sys/dev/cxgbe/t4_ioctl.h
+++ b/sys/dev/cxgbe/t4_ioctl.h
@@ -63,6 +63,7 @@ enum {
T4_LOAD_BOOT, /* flash boot rom */
T4_LOAD_BOOTCFG, /* flash bootcfg */
T4_CUDBG_DUMP, /* debug dump of chip state */
+ T4_SET_FILTER_MASK, /* set filter mask (hashfilter mode) */
};
struct t4_reg {
@@ -429,4 +430,5 @@ struct t4_offload_policy {
#define CHELSIO_T4_LOAD_BOOTCFG _IOW('f', T4_LOAD_BOOTCFG, struct t4_data)
#define CHELSIO_T4_CUDBG_DUMP _IOWR('f', T4_CUDBG_DUMP, struct t4_cudbg_dump)
#define CHELSIO_T4_SET_OFLD_POLICY _IOW('f', T4_SET_OFLD_POLICY, struct t4_offload_policy)
+#define CHELSIO_T4_SET_FILTER_MASK _IOW('f', T4_SET_FILTER_MASK, uint32_t)
#endif