1 /* SPDX-License-Identifier: BSD-3-Clause
3 * Copyright(c) 2019-2020 Xilinx, Inc.
4 * Copyright(c) 2017-2019 Solarflare Communications Inc.
6 * This software was jointly developed between OKTET Labs (under contract
7 * for Solarflare) and Solarflare Communications, Inc.
22 /** Number of elements in match_supported array */
23 size_t supported_match_num;
24 /** Driver cache of supported filter match masks */
25 uint32_t *supported_match;
27 * Supports any of ip_proto, remote host or local host
28 * filters. This flag is used for filter match exceptions
30 boolean_t supports_ip_proto_or_addr_filter;
32 * Supports any of remote port or local port filters.
33 * This flag is used for filter match exceptions
35 boolean_t supports_rem_or_local_port_filter;
40 int sfc_filter_attach(struct sfc_adapter *sa);
41 void sfc_filter_detach(struct sfc_adapter *sa);
43 boolean_t sfc_filter_is_match_supported(struct sfc_adapter *sa, uint32_t match);
48 #endif /* _SFC_FILTER_H */