]> git.karo-electronics.de Git - karo-tx-linux.git/commit
IB/core: Add raw packet QP type
authorOr Gerlitz <ogerlitz@mellanox.com>
Thu, 1 Mar 2012 10:17:51 +0000 (12:17 +0200)
committerRoland Dreier <roland@purestorage.com>
Tue, 24 Apr 2012 23:38:10 +0000 (16:38 -0700)
commitaefa63926dfcc35363d303c53b49b9f22764da0f
treef12e236f219072be2815bada09156e2c3fb33fda
parent0034102808e0dbbf3a2394b82b1bb40b5778de9e
IB/core: Add raw packet QP type

IB_QPT_RAW_PACKET allows applications to build a complete packet,
including L2 headers, when sending; on the receive side, the HW will
not strip any headers.

This QP type is designed for userspace direct access to Ethernet; for
example by applications that do TCP/IP themselves.  Only processes
with the NET_RAW capability are allowed to create raw packet QPs (the
name "raw packet QP" is supposed to suggest an analogy to AF_PACKET /
SOL_RAW sockets).

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/core/uverbs_cmd.c
drivers/infiniband/core/verbs.c
include/rdma/ib_verbs.h