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
..
2021-09-07 18:31:55 -07:00
2021-08-10 20:44:27 -04:00
2020-10-02 18:18:01 +00:00
2021-09-03 13:51:08 -04:00
2021-07-07 11:05:46 +00:00
2020-02-03 17:35:11 +00:00
2021-04-27 19:07:33 +02:00
2021-01-13 18:43:51 +01:00
2021-09-02 01:06:58 +02:00
2020-04-18 02:52:59 +00:00
2020-07-01 00:33:16 +00:00
2020-02-03 17:35:11 +00:00
2021-09-10 01:51:25 +03:00
2021-08-08 10:16:06 +02:00
2021-04-12 13:47:55 -06:00
2021-03-05 17:33:39 -08:00
2021-07-31 08:00:16 -07:00
2020-04-18 02:53:09 +00:00
2021-08-10 21:27:54 -04:00
2021-08-10 20:44:27 -04:00
2021-09-06 21:17:19 -07:00
2020-08-31 15:03:23 +00:00
2020-09-18 16:48:08 +00:00
2020-02-07 19:53:07 +00:00
2019-10-21 18:07:11 +00:00
2021-09-11 20:04:52 +08:00
2020-11-19 03:59:21 +00:00
2021-08-13 16:58:25 -04:00
2021-08-20 14:51:12 -04:00
2021-08-10 20:44:27 -04:00
2021-08-10 20:44:27 -04:00
2021-01-07 17:05:30 -07:00
2020-10-05 19:58:55 +00:00
2019-10-21 18:07:40 +00:00
2019-10-21 18:07:44 +00:00
2021-08-16 06:28:33 +02:00
2021-09-02 22:35:26 +03:00
2021-09-02 22:25:16 -04:00
2021-09-03 15:42:46 -04:00