]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
mlx5en: Create and destroy all flow tables and rules when the network interface attac...
authorHans Petter Selasky <hselasky@FreeBSD.org>
Tue, 8 Feb 2022 15:08:53 +0000 (16:08 +0100)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Tue, 8 Feb 2022 15:08:53 +0000 (16:08 +0100)
commitf42aaf43d349e9f3e070167bfe0d1a23efb231eb
tree6a2ba3a5399e84419dd2c2bc99ac1c90ef38dc2b
parente441376f455e7b68f07471d6283adf1e68f9e089
mlx5en: Create and destroy all flow tables and rules when the network interface attaches and detaches.

Previously flow steering tables and rules were only created and destroyed
at link up and down events, respectivly. Due to new requirements for adding
TLS RX flow tables and rules, the main flow steering table must always be
available as there are permanent redirections from the TLS RX flow table
to the vlan flow table.

Sponsored by: NVIDIA Networking

(cherry picked from commit e059c120b4223fd5ec3af9def21c0519f439fe57)
sys/dev/mlx5/mlx5_en/en.h
sys/dev/mlx5/mlx5_en/mlx5_en_flow_table.c
sys/dev/mlx5/mlx5_en/mlx5_en_main.c