[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1469053202-30649-1-git-send-email-saeedm@mellanox.com>
Date: Thu, 21 Jul 2016 01:20:00 +0300
From: Saeed Mahameed <saeedm@...lanox.com>
To: "David S. Miller" <davem@...emloft.net>
Cc: netdev@...r.kernel.org, Or Gerlitz <ogerlitz@...lanox.com>,
Hadar Hen-Zion <hadarh@...lanox.com>,
Saeed Mahameed <saeedm@...lanox.com>
Subject: [PATCH net-next 0/2] Mellanox 100G mlx5 minimum inline header mode
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.
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 | 18 +++++++++
include/linux/mlx5/device.h | 7 ++++
include/linux/mlx5/mlx5_ifc.h | 10 +++--
include/linux/mlx5/vport.h | 2 +
7 files changed, 111 insertions(+), 7 deletions(-)
--
2.8.0
Powered by blists - more mailing lists