FreeBSD/src 914ec31 (r341985)sys/dev/mlx5/mlx5_en mlx5_en_main.c mlx5_en_tx.c

MFC r341586:
mlx5en: Implement backpressure indication.

The backpressure indication is implemented using an unlimited rate type of
mbuf send tag. When the upper layers typically the socket layer has obtained such
a tag, it can then query the destination driver queue for the current
amount of space available in the send queue.

A single mbuf send tag may be referenced multiple times and a refcount has been added
to the mlx5e_priv structure to track its usage. Because the send tag resides
in the mlx5e_channel structure, there is no need to wait for refcounts to reach
zero until the mlx4en(4) driver is detached. The channels structure is persistant
during the lifetime of the mlx5en(4) driver it belongs to and can so be accessed
without any need of synchronization.

The mlx5e_snd_tag structure was extended to contain a type field, because there are now
two different tag types which end up in the driver which need to be distinguished.

Sponsored by:   Mellanox Technologies
DeltaFile
+151-10sys/dev/mlx5/mlx5_en/mlx5_en_main.c
+64-36sys/dev/mlx5/mlx5_en/mlx5_en_tx.c
+41-1sys/dev/mlx5/mlx5_en/en.h
+13-8sys/dev/mlx5/mlx5_en/mlx5_en_rl.c
+1-1sys/dev/mlx5/mlx5_en/en_rl.h
+270-565 files

UnifiedSplitRaw