A method, computer program product, and distributed data processing system
that allows a single physical I/O adapter, such as a PCI, PCI-X, or PCI-E
adapter, to track performance and reliability statistics per virtual
upstream and downstream port, thereby allowing a system and network
management to be performed at finer granularity than what is possible
using conventional physical port statistics, is provided. Particularly, a
mechanism of managing per-virtual port performance metrics in a logically
partitioned data processing system including allocating a subset of
resources of a physical adapter to a virtual adapter of a plurality of
virtual adapters is provided. The subset of resources includes a virtual
port having an identifier assigned thereto. The identifier of the virtual
port is associated with an address of a physical port. A metric table is
associated with the virtual port, wherein the metric table includes
metrics of operations that target the virtual port.