Patent ID: 7940785

Claim:
A method for managing packets received by an Ethernet adapter shared by a plurality of threads, wherein each of the plurality of threads is executing on a logical partition of a computer system, the method comprising: providing a first function operable to add a connection to a connection table of the Ethernet adapter and associate the connection with a queue pair (QP) comprising a receive queue and a send queue, wherein the first function includes a logical port number parameter and a QP handle parameter, wherein the logical port number parameter identifies a logical port of the Ethernet adapter and the QP handle parameter identifies the queue pair; providing a second function, including the logical port number and QP handle parameters, operable to remove the connection from the connection table of the Ethernet adapter; invoking the first function by a one of the plurality of threads, including specifying values for the logical port number and QP handle parameters by the one of the plurality of threads to identify the connection and associated queue pair, wherein the Ethernet adapter is operable to route any packet corresponding to the connection received by the Ethernet adapter to the queue pair associated with the connection responsive to the connection being in the connection table, thereby routing any packet corresponding to the connection received by the Ethernet adapter to the queue pair for the thread invoking the first function without first routing such packet to a default queue pair of the logical partition on which the thread is executing; and invoking the second function by the one of the plurality of threads.