Method and system for transmitting data using a network protocol and a
storage protocol via an adapter is provided. The method includes
receiving an input output control block (IOCB) from a host system for
transferring data stored in a host system memory; acquiring data from the
host system memory; copying a header template in a local memory of the
adapter, wherein the header template is created by a driver executed by
the host system; creating a header for the network protocol and a header
for the storage protocol; wherein a first module for the adapter creates
the network protocol packet header and the first modules uses an assist
module to create the storage protocol packet header; and creating a
packet to transfer a portion of the acquired data, wherein a packet size
is based on a payload size for the storage.