]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Expose software parsing for Raw Ethernet QP
authorNoa Osherovich <noaos@mellanox.com>
Thu, 17 Aug 2017 12:52:28 +0000 (15:52 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 24 Aug 2017 21:47:34 +0000 (17:47 -0400)
commit3515e80be3e4884f19b9dad7cc594d08a2546fd9
tree769438a0d8b1c54c1437545acbbe46dc4c94ff0b
parenta62b646d272ab1d850529fbe29b51b92d9e85640
IB/mlx5: Expose software parsing for Raw Ethernet QP

Software parsing (SWP) is a feature that can be used to instruct the
device to stop using its internal parser and to parse packets on the
transmit path according to offsets set for each packets.

Through this feature, the device allows the handling of checksum and
LSO by the hardware according to the location of IP and TCP/UDP
headers.

Enable SW parsing on Raw Ethernet send queue by default if firmware
supports it and report these capabilities to user space.

Signed-off-by: Noa Osherovich <noaos@mellanox.com>
Reviewed-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/qp.c
include/uapi/rdma/mlx5-abi.h