IB/mlx4: Set link type for RAW PACKET QPs in the QP context
authorEli Cohen <eli@mellanox.com>
Sun, 21 Apr 2013 15:10:01 +0000 (15:10 +0000)
committerRoland Dreier <roland@purestorage.com>
Thu, 25 Apr 2013 00:51:28 +0000 (17:51 -0700)
commit3528f69637723183f997573c7ec50ca869f219ba
treefab2204bccf6dcda549452a96bb4389596d58be2
parent02d7ef6f9dfdd0756441913e34008e8883195deb
IB/mlx4: Set link type for RAW PACKET QPs in the QP context

When the link type is Ethernet, setting the link type in the QP
context will enable TCP/IP stateless offloads (checksum, LSO, RSS) for
RAW PACKET Ethernet QPs.  For IB UD QPs this worked OK since the value
assumed by the firmware for IB link layer is zero.

Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/mlx4/qp.c