opnsense-src/sys/dev/mlx5/mlx5_en
John Baldwin c782ea8bb5 Add a switch structure for send tags.
Move the type and function pointers for operations on existing send
tags (modify, query, next, free) out of 'struct ifnet' and into a new
'struct if_snd_tag_sw'.  A pointer to this structure is added to the
generic part of send tags and is initialized by m_snd_tag_init()
(which now accepts a switch structure as a new argument in place of
the type).

Previously, device driver ifnet methods switched on the type to call
type-specific functions.  Now, those type-specific functions are saved
in the switch structure and invoked directly.  In addition, this more
gracefully permits multiple implementations of the same tag within a
driver.  In particular, NIC TLS for future Chelsio adapters will use a
different implementation than the existing NIC TLS support for T6
adapters.

Reviewed by:	gallatin, hselasky, kib (older version)
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D31572
2021-09-14 11:43:41 -07:00
..
en.h Add a switch structure for send tags. 2021-09-14 11:43:41 -07:00
en_hw_tls.h Add a switch structure for send tags. 2021-09-14 11:43:41 -07:00
en_rl.h Add a switch structure for send tags. 2021-09-14 11:43:41 -07:00
mlx5_en_dim.c Add support for Dynamic Interrupt Moderation, DIM, in mlx5en(4). 2019-05-08 10:23:33 +00:00
mlx5_en_ethtool.c mlx5en: Allow binding channels to CPUs when RSS is not enabled. 2021-07-12 14:22:34 +02:00
mlx5_en_flow_table.c mlx5en: add ASCII art providing an overview of flow tables organization 2021-07-12 12:34:39 +03:00
mlx5_en_hw_tls.c Add a switch structure for send tags. 2021-09-14 11:43:41 -07:00
mlx5_en_main.c Add a switch structure for send tags. 2021-09-14 11:43:41 -07:00
mlx5_en_port_buffer.c Fix some common typos in comments 2021-08-08 10:16:06 +02:00
mlx5_en_rl.c Add a switch structure for send tags. 2021-09-14 11:43:41 -07:00
mlx5_en_rx.c mlx5en: handle offloaded Rx checksums calculated for tunneled packets 2021-07-12 12:34:38 +03:00
mlx5_en_tx.c Add a switch structure for send tags. 2021-09-14 11:43:41 -07:00
mlx5_en_txrx.c Unify prints in mlx5en(4). 2019-10-02 09:49:44 +00:00
port_buffer.h Bump some copyrights in mlx5en(4). 2021-01-08 12:35:55 +01:00