]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
IB/ipath: Allow receive ports mapped into userspace to be shared
authorMark Debbage <mark.debbage@qlogic.com>
Thu, 15 Mar 2007 21:44:59 +0000 (14:44 -0700)
committerRoland Dreier <rolandd@cisco.com>
Thu, 19 Apr 2007 03:20:57 +0000 (20:20 -0700)
commitc7e29ff11f23ec78b3caf691789c2b791bb596bf
tree4cba69e809f422e7cd5c7297335ba551496ddce5
parent0a5a83cffc03592c2102ad07b7532b596a16f8cd
IB/ipath: Allow receive ports mapped into userspace to be shared

Improve port-sharing performance by allowing any process to receive
packets from the shared hardware port under a spin lock for mutual
exclusion. Previously, one process was nominated as the master and
that process was responsible for receiving all packets from the shared
hardware port and either consuming them or forwarding them to their
destination. This led to starvation problems for other processes when
the master process was busy in computation phases.

Signed-off-by: Bryan O'Sullivan <bryan.osullivan@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ipath/ipath_common.h
drivers/infiniband/hw/ipath/ipath_file_ops.c