]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r336450:
authorhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 14 Aug 2018 11:19:04 +0000 (11:19 +0000)
committerhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 14 Aug 2018 11:19:04 +0000 (11:19 +0000)
commit4f425342ac541fc11a8106250b72851033c836f6
treeea2636fbedfb691d04f8e897b86399533aab5935
parentb89877b3d2823b89032a33db201a5082d77b01e5
MFC r336450:
Do not inline transmit headers and use HW VLAN tagging if supported by mlx5en(4).

Query the minimal inline mode supported by the card.
When creating a send queue, cache the queried mode and optimize the transmit
if no inlining is required.  In this case, we can avoid touching the headers
cache line and avoid dirtying several more lines by copying headers into
the send WQEs.  Also, if no inline headers are used, hardware assists in
the VLAN tag framing.

Submitted by: kib@, slavash@
Sponsored by: Mellanox Technologies

git-svn-id: svn://svn.freebsd.org/base/stable/10@337742 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/mlx5/device.h
sys/dev/mlx5/mlx5_core/mlx5_vport.c
sys/dev/mlx5/mlx5_en/en.h
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
sys/dev/mlx5/mlx5_en/mlx5_en_tx.c
sys/dev/mlx5/qp.h
sys/dev/mlx5/vport.h