Andrew Gallatin 98085bae8c make lacp's use_numa hashing aware of send tags
When I did the use_numa support, I missed the fact that there is
a separate hash function for send tag nic selection. So when
use_numa is enabled, ktls offload does not work properly, as it
does not reliably allocate a send tag on the proper egress nic
since different egress nics are selected for send-tag allocation
and packet transmit. To fix this, this change:

- refectors lacp_select_tx_port_by_hash() and
     lacp_select_tx_port() to make lacp_select_tx_port_by_hash()
     always called by lacp_select_tx_port()

-   pre-shifts flowids to convert them to hashes when calling lacp_select_tx_port_by_hash()

-   adds a numa_domain field to if_snd_tag_alloc_params

-   plumbs the numa domain into places where we allocate send tags

In testing with NIC TLS setup on a NUMA machine, I see thousands
of output errors before the change when enabling
kern.ipc.tls.ifnet.permitted=1. After the change, I see no
errors, and I see the NIC sysctl counters showing active TLS
offload sessions.

Reviewed by:	rrs, hselasky, jhb
Sponsored by:	Netflix
2020-03-09 13:44:51 +00:00
..
2020-03-05 20:04:41 +00:00
2020-02-20 16:58:19 +00:00
2020-03-06 21:15:25 +00:00
2020-03-02 23:25:02 +00:00
2020-03-09 03:34:16 +00:00
2020-03-01 20:37:42 +00:00
2020-03-04 22:32:40 +00:00
2020-03-01 23:01:37 +00:00
2020-03-06 09:59:07 +00:00
2020-03-06 23:01:49 +00:00
2020-03-08 00:23:36 +00:00
2020-03-08 00:23:36 +00:00
2020-03-07 15:37:23 +00:00
2020-02-03 17:35:11 +00:00