OSDN Git Service

mlxsw: pci_hw: Add 'time_stamp' and 'time_stamp_type' fields to CQEv2
authorDanielle Ratson <danieller@nvidia.com>
Sun, 24 Jul 2022 08:03:18 +0000 (11:03 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Jul 2022 12:58:55 +0000 (13:58 +0100)
commitaa98487cc96b798ff7c13eb251b1174264759928
tree8db3c3d89afa6f12d6d6d86352fd66551d96772e
parent731416e9ae5d5c3d5491aeef4fda53a191e8822d
mlxsw: pci_hw: Add 'time_stamp' and 'time_stamp_type' fields to CQEv2

The Completion Queue Element version 2 (CQEv2) includes various metadata
fields of packets.

Add 'time_stamp' and 'time_stamp_type' fields along with functions to
extract the seconds and nanoseconds for a future use.

Signed-off-by: Danielle Ratson <danieller@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/pci_hw.h