]> git.karo-electronics.de Git - linux-beck.git/commit
net/mlx5e: Query minimum required header copy during xmit
authorHadar Hen Zion <hadarh@mellanox.com>
Sun, 24 Jul 2016 13:12:40 +0000 (16:12 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Jul 2016 00:53:40 +0000 (17:53 -0700)
commitcff92d7c7ebd7ceddd4def6b39e0302585b1eb14
treee1c5dede24617ba0df1ec6531f5f9124f1b4c688
parentae76715d153e33c249b6850361e4d8d775388b5a
net/mlx5e: Query minimum required header copy during xmit

Add support for query the minimum inline mode from the Firmware.
It is required for correct TX steering according to L3/L4 packet
headers.

Each send queue (SQ) has inline mode that defines the minimal required
headers that needs to be copied into the SQ WQE.
The driver asks the Firmware for the wqe_inline_mode device capability
value.  In case the device capability defined as "vport context" the
driver must check the reported min inline mode from the vport context
before creating its SQs.

Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/vport.c
include/linux/mlx5/mlx5_ifc.h
include/linux/mlx5/vport.h