Dynamic network adapter queue pair allocation
First Claim
Patent Images
1. A system, which comprises:
- a physical network adapter, said network adapter including at least one physical port and a receive side scaling component;
at least one logical partition, said at least one logical partition including an operating system image, said operating system image including a logical port driver, and said at least one logical partition including a logical network adapter;
a hypervisor communicating between said physical network adapter and said logical partition;
wherein said logical adapter includes at least one logical port, said logical port driver including;
program instructions to receive a notification of a change in allocation of queue pair resources to said operating system image by adding at least one new queue pair;
program instructions to query, in response to said notification, said physical network adapter through said hypervisor obtain a new queue pair resource count after said change in allocation;
program instructions to allocate said at least one new queue pair;
program instructions to perform, after allocating said at least one new queue pair, a hashing operation using said new queue pair resource count to distribute transmit traffic among said queue pair resources;
program instruction to start said at least one new queue pair; and
,program instructions to wait for said physical network adapter to perform a hashing operation to distribute receive traffic among said queue pair resources operating after said change in allocation.
1 Assignment
0 Petitions
Accused Products
Abstract
A system receives a notification at an operating system image of a change in allocation of queue pair resources to the operating system image. The system queries a physical network adapter through a hypervisor to obtain a new queue pair resource count that will exist in the virtualized system after the change in allocation. The system performs a hashing operation in the operating system image using the new queue pair resource count to distribute transmit traffic among the queue pair resources that will exist in the virtualized system after the change in allocation.
17 Citations
4 Claims
-
1. A system, which comprises:
-
a physical network adapter, said network adapter including at least one physical port and a receive side scaling component; at least one logical partition, said at least one logical partition including an operating system image, said operating system image including a logical port driver, and said at least one logical partition including a logical network adapter; a hypervisor communicating between said physical network adapter and said logical partition; wherein said logical adapter includes at least one logical port, said logical port driver including; program instructions to receive a notification of a change in allocation of queue pair resources to said operating system image by adding at least one new queue pair; program instructions to query, in response to said notification, said physical network adapter through said hypervisor obtain a new queue pair resource count after said change in allocation; program instructions to allocate said at least one new queue pair; program instructions to perform, after allocating said at least one new queue pair, a hashing operation using said new queue pair resource count to distribute transmit traffic among said queue pair resources; program instruction to start said at least one new queue pair; and
,program instructions to wait for said physical network adapter to perform a hashing operation to distribute receive traffic among said queue pair resources operating after said change in allocation.
-
-
2. A computer program product in computer readable storage medium for dynamically changing an allocation of queue pair resources to an operating system image running in virtualized environment, said computer program product comprising:
-
instructions stored in a computer readable storage medium for receiving a notification of a change in allocation of queue pair resources to said operating system image by adding at least one new queue pair; instructions stored in said computer readable storage medium for querying said physical network adapter through said hypervisor obtain a new queue pair resource count after said change in allocation in response to said notification; instructions stored in said computer readable storage medium for allocating said at least one new queue pair; instructions stored in said computer readable storage medium for performing, after allocating said at least one new queue pair, a hashing operation using said new queue pair resource count to distribute transmit traffic among said queue pair resources; instructions stored in said computer readable storage medium for starting said at least one new queue pair; and
,instructions stored in said computer readable storage medium for waiting for said physical network adaptor to perform a hashing operation to distribute receive traffic among said queue pair resources operating after said change in allocation.
-
-
3. A system, which comprises:
-
a physical network adapter, said network adapter including at least one physical port and a receive side scaling component; at least one logical partition, said at least one logical partition including an operating system image, said operating system image including a logical port driver, and said at least one logical partition including a logical network adapter; a hypervisor communicating between said physical network adapter and said logical partition; wherein said logical adapter includes at least one logical port, said logical port driver including; program instructions to receive a notification of a change in allocation of queue pair resources to said operating system image by removing at least one old queue pair; program instructions to query, in response to said notification, said physical network adapter through said hypervisor obtain a new queue pair resource count after said change in allocation, and an identifier of said at least one queue pair to be removed; program instructions to perform a hashing operation using said new queue pair resource count to distribute transmit traffic among said queue pair resources; program instructions to stop said at least one queue pair identified by said identifier after performing said hashing operation; program instructions to wait for said physical network adapter to perform a hashing operation to distribute receive traffic among said queue pair resources operating after said change in allocation; and
,program instructions to deallocate said at least one old queue pair.
-
-
4. A computer program product in computer readable storage medium for dynamically changing an allocation of queue pair resources to an operating system image running in virtualized environment, said computer program product comprising:
-
instructions stored in a computer readable storage medium for receiving a notification of a change in allocation of queue pair resources to said operating system image by removing at least one old queue pair; instructions stored in said computer readable storage medium for querying said physical network adapter through said hypervisor obtain a new queue pair resource count after said change in allocation in response to said notification; instructions stored in said computer readable storage medium for allocating said at least one new queue pair; instructions stored in said computer readable storage medium for querying said physical network adapter through said hypervisor to obtain an identifier of said at least one queue pair to be removed; instructions stored in said computer readable storage medium for stopping said at least one queue pair identified by said identifier after performing said hashing operation; instructions stored in said computer readable storage medium for waiting for said physical network adapter to perform a hashing operation to distribute receive traffic among said queue pair resources operating after said change in allocation; and
,instructions stored in said computer readable storage medium for deallocating said at least one old queue pair.
-
Specification