Virtual memory protocol segmentation offloading
First Claim
1. A method comprising:
- responsive to storage of outbound payload data within a user memory space of a system memory of a network device generated by a user process running on a host processor of the network device, determining, by a bus/memory interface of the network device or separate hardware of the network device comprising a network interface card (NIC), presence of the outbound payload data, wherein the outbound payload data is distributed across at least a first payload buffer and a second payload buffer within the user memory space, wherein the NIC is configured to perform Transmission Control Protocol (TCP) Segmentation Offloading (TSO);
fetching, by the bus/memory interface on behalf of the NIC, the outbound payload data from the first payload buffer and the second payload buffer without copying the outbound payload data from the user space to a kernel space of the system memory by performing direct virtual memory addressing of the user memory space including;
when the first payload buffer and the second payload buffer are noncontiguous, then retrieving the outbound payload data with reference to;
a first buffer descriptor including information indicative of a first starting virtual address within the system memory of the first payload buffer containing therein a first portion of the outbound payload data; and
a second buffer descriptor including information indicative of a second virtual starting address within the system memory of the second payload buffer containing therein a second portion of the outbound payload data; and
when the first payload buffer and the second payload buffer are contiguous, then retrieving the outbound payload data with reference to a single buffer descriptor, including information indicative of the first starting virtual address; and
segmenting, by a network processor of the NIC, the outbound payload data across one or more TCP packets on behalf of the host processor.
0 Assignments
0 Petitions
Accused Products
Abstract
Methods and systems for a more efficient transmission of network traffic are provided. According to one embodiment, presence of outbound payload data, distributed across a first and second payload buffer, within a user memory space of a network device that has been generated by a user process is determined by a bus/memory interface or a network interface unit. The payload data is fetched by performing direct virtual memory addressing of the user memory space including mapping virtual addresses of the payload buffers to corresponding physical addresses, including: (i) when the payload buffers are noncontiguous, then retrieving the outbound payload data with reference to multiple buffer descriptors having starting virtual addresses of the payload buffers and (ii) when they are contiguous, then retrieving the outbound payload data with reference to a single buffer descriptor. The outbound payload data is then segmented across one or more TCP packets.
37 Citations
12 Claims
-
1. A method comprising:
-
responsive to storage of outbound payload data within a user memory space of a system memory of a network device generated by a user process running on a host processor of the network device, determining, by a bus/memory interface of the network device or separate hardware of the network device comprising a network interface card (NIC), presence of the outbound payload data, wherein the outbound payload data is distributed across at least a first payload buffer and a second payload buffer within the user memory space, wherein the NIC is configured to perform Transmission Control Protocol (TCP) Segmentation Offloading (TSO); fetching, by the bus/memory interface on behalf of the NIC, the outbound payload data from the first payload buffer and the second payload buffer without copying the outbound payload data from the user space to a kernel space of the system memory by performing direct virtual memory addressing of the user memory space including; when the first payload buffer and the second payload buffer are noncontiguous, then retrieving the outbound payload data with reference to; a first buffer descriptor including information indicative of a first starting virtual address within the system memory of the first payload buffer containing therein a first portion of the outbound payload data; and a second buffer descriptor including information indicative of a second virtual starting address within the system memory of the second payload buffer containing therein a second portion of the outbound payload data; and when the first payload buffer and the second payload buffer are contiguous, then retrieving the outbound payload data with reference to a single buffer descriptor, including information indicative of the first starting virtual address; and segmenting, by a network processor of the NIC, the outbound payload data across one or more TCP packets on behalf of the host processor. - View Dependent Claims (2, 3, 4)
-
-
5. A network device comprising:
-
a host processor; a system memory; a network interface card (NIC) configured to perform Transmission Control Protocol (TCP) Segmentation Offloading (TSO); and a bus/memory interface interposed between the host processor and the system memory and the NIC, wherein the bus/memory interface is configured to; determine presence of outbound payload data within a user memory space of the system memory generated by a user process running on the host processor, wherein the outbound payload data is distributed across at least a first payload buffer and a second payload buffer within the user memory space; and fetch on behalf of the NIC, the outbound payload data from the first payload buffer and the second payload buffer without copying the outbound payload data from the user space to a kernel space of the system memory by performing direct virtual memory addressing of the user memory space including; when the first payload buffer and the second payload buffer are noncontiguous, then retrieving the outbound payload data with reference to; a first buffer descriptor including information indicative of a first starting virtual address within the system memory of the first payload buffer containing therein a first portion of the outbound payload data; and a second buffer descriptor including information indicative of a second virtual starting address within the system memory of the second payload buffer containing therein a second portion of the outbound payload data; and when the first payload buffer and the second payload buffer are contiguous, then retrieving the outbound payload data with reference to a single buffer descriptor, including information indicative of the first starting virtual address; and responsive to receipt of the outbound payload data, a network processor of the NIC segments the outbound payload data across one or more TCP packets on behalf of the host processor. - View Dependent Claims (6, 7, 8)
-
-
9. A network device comprising:
-
a means for determining presence of outbound payload data within a user memory space of a system memory of the network device generated by a user process running on a host processor of the network device, wherein the outbound payload data is distributed across at least a first payload buffer and a second payload buffer within the user memory space; a means for fetching on behalf of a network interface unit of the network device, the outbound payload data from the first payload buffer and the second payload buffer without copying the outbound payload data from the user space to a kernel space of the system memory by performing direct virtual memory addressing of the user memory space including; when the first payload buffer and the second payload buffer are noncontiguous, then retrieving the outbound payload data with reference to; a first buffer descriptor including information indicative of a first starting virtual address within the system memory of the first payload buffer containing therein a first portion of the outbound payload data; and a second buffer descriptor including information indicative of a second virtual starting address within the system memory of the second payload buffer containing therein a second portion of the outbound payload data; and when the first payload buffer and the second payload buffer are contiguous, then retrieving the outbound payload data with reference to a single buffer descriptor, including information indicative of the first starting virtual address; and a means for performing Transmission Control Protocol (TCP) Segmentation Offloading (TSO) by segmenting the outbound payload data across one or more TCP packets on behalf of the host processor. - View Dependent Claims (10, 11, 12)
-
Specification