netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next V2 0/2] Mellanox 100G mlx5 minimum inline header mode
@ 2016-07-24 13:12 Saeed Mahameed
  2016-07-24 13:12 ` [PATCH net-next V2 1/2] net/mlx5e: Check the minimum inline header mode before xmit Saeed Mahameed
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Saeed Mahameed @ 2016-07-24 13:12 UTC (permalink / raw)
  To: David S. Miller; +Cc: netdev, Or Gerlitz, Hadar Hen-Zion, Saeed Mahameed

Hi Dave,

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

Thanks,
Saeed.

Hadar Hen Zion (2):
  net/mlx5e: Check the minimum inline header mode before xmit
  net/mlx5e: Query minimum required header copy during xmit

 drivers/net/ethernet/mellanox/mlx5/core/en.h      |  8 ++++
 drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 24 +++++++++++
 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c   | 49 +++++++++++++++++++++--
 drivers/net/ethernet/mellanox/mlx5/core/vport.c   | 12 ++++++
 include/linux/mlx5/device.h                       |  7 ++++
 include/linux/mlx5/mlx5_ifc.h                     | 10 +++--
 include/linux/mlx5/vport.h                        |  2 +
 7 files changed, 105 insertions(+), 7 deletions(-)

-- 
2.8.0

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-07-26 21:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-24 13:12 [PATCH net-next V2 0/2] Mellanox 100G mlx5 minimum inline header mode Saeed Mahameed
2016-07-24 13:12 ` [PATCH net-next V2 1/2] net/mlx5e: Check the minimum inline header mode before xmit Saeed Mahameed
2016-07-24 13:12 ` [PATCH net-next V2 2/2] net/mlx5e: Query minimum required header copy during xmit Saeed Mahameed
2016-07-26  0:54 ` [PATCH net-next V2 0/2] Mellanox 100G mlx5 minimum inline header mode David Miller
2016-07-26 10:22   ` Hadar Hen Zion
2016-07-26 10:30   ` Hadar Hen Zion
2016-07-26 21:29     ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).