]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'mlx5-minimum-inline-header-mode'
authorDavid S. Miller <davem@davemloft.net>
Tue, 26 Jul 2016 00:53:41 +0000 (17:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Jul 2016 00:53:41 +0000 (17:53 -0700)
commit6758dbe56f23b85dd023d47a70d5f77b8c837d46
treee1c5dede24617ba0df1ec6531f5f9124f1b4c688
parentbe9878b60855418acd437ee370fc1ed22ee86060
parent1d66e0b39a8785edd03faae090789572d97c1fba
Merge branch 'mlx5-minimum-inline-header-mode'

Saeed Mahameed says:

====================
Mellanox 100G mlx5 minimum inline header mode

This small series from Hadar adds the support for minimum inline header mode query
in mlx5e NIC driver.

Today on TX the driver copies to the HW descriptor only up to L2 header which is the default
required mode and sufficient for today's needs.

The header in the HW descriptor is used for HW loopback steering decision, without it packets
will go directly to the wire with no questions asked.

For TX loopback steering according to L2/L3/L4 headers, ConnectX-4 requires to copy the
corresponding headers into the send queue(SQ) WQE HW descriptor so it can decide whether to loop it back
or to forward to wire.

For legacy E-Switch mode only L2 headers copy is required.
For advanced steering (E-Switch offloads) more header layers may be required to be copied,
the required mode will be advertised by FW to each VF and PF according to the corresponding
E-Switch configuration.

Changes V2:
 - Allocate query_nic_vport_context_out on the stack
====================

Signed-off-by: David S. Miller <davem@davemloft.net>