Patent ID: 8782161

Claim:
A method for offloading computation flexibly to a communication adapter, the method comprising: receiving, by the communication adapter via a network from a requester system, a first message comprising a procedure image identifier associated with a procedure image of a host application, wherein the host application is located on a host connected to the communication adapter; determining a procedure image and a communication adapter processor using the procedure image identifier in the first message, wherein the communication adapter processor is located on the communication adapter; forwarding, by a harness on the communication adapter, the first message to the communication adapter processor configured to execute the procedure image; and executing, by the communication adapter processor, in response to the first message, and independent of a host processor located on the host, the procedure image in communication adapter memory by: acquiring a first host memory latch for a memory block in host memory located on the host; reading, into the communication adapter memory, the memory block in the host memory after acquiring the first host memory latch; manipulating, by executing the procedure image, the memory block in the communication adapter memory to obtain a modified memory block; committing the modified memory block to the host memory; and releasing the first host memory latch.