aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/mlx5/mlx5_en/en.h
diff options
context:
space:
mode:
authorKonstantin Belousov <konstantinb@nvidia.com>2021-04-14 07:09:36 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2021-07-12 09:34:39 +0000
commit0e4cb0d5a487339cc7f5e151c466e20aeac1e4d9 (patch)
tree809fdc5b6a66df83d3e62df0e98b808741cfa625 /sys/dev/mlx5/mlx5_en/en.h
parent559eaa44d91ad74973612843835a8248b3df7341 (diff)
downloadsrc-0e4cb0d5a487339cc7f5e151c466e20aeac1e4d9.tar.gz
src-0e4cb0d5a487339cc7f5e151c466e20aeac1e4d9.zip
mlx5en: remove all dynamic vxlan steering rules on close and reinstall on open
Reviewed by: hselasky Sponsored by: Mellanox Technologies/NVidia Networking MFC after: 1 week
Diffstat (limited to 'sys/dev/mlx5/mlx5_en/en.h')
-rw-r--r--sys/dev/mlx5/mlx5_en/en.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/mlx5/mlx5_en/en.h b/sys/dev/mlx5/mlx5_en/en.h
index ab30c7e2ca90..e4b66bea8f60 100644
--- a/sys/dev/mlx5/mlx5_en/en.h
+++ b/sys/dev/mlx5/mlx5_en/en.h
@@ -948,6 +948,7 @@ struct mlx5e_vxlan_db_el {
u_int refcount;
u_int proto;
u_int port;
+ bool installed;
struct mlx5_flow_rule *vxlan_ft_rule;
TAILQ_ENTRY(mlx5e_vxlan_db_el) link;
};
@@ -1149,6 +1150,9 @@ void mlx5e_vxlan_start(void *arg, struct ifnet *ifp, sa_family_t family,
void mlx5e_vxlan_stop(void *arg, struct ifnet *ifp, sa_family_t family,
u_int port);
+int mlx5e_add_all_vxlan_rules(struct mlx5e_priv *priv);
+void mlx5e_del_all_vxlan_rules(struct mlx5e_priv *priv);
+
static inline void
mlx5e_tx_notify_hw(struct mlx5e_sq *sq, u32 *wqe)
{