]> git.ipfire.org Git - thirdparty/linux.git/commit
iavf: negotiate PTP capabilities
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 6 Nov 2024 17:37:22 +0000 (12:37 -0500)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 14 Feb 2025 18:58:07 +0000 (10:58 -0800)
commit3247d65ad9de39ae11261274899ac6a9fc04b7a9
treecc67fdc1604c4ceb89ff8b26bd8f2eaa15258c10
parent2a86e210f1a102614116e347efda59896f780417
iavf: negotiate PTP capabilities

Add a new extended capabilities negotiation to exchange information from
the PF about what PTP capabilities are supported by this VF. This
requires sending a VIRTCHNL_OP_1588_PTP_GET_CAPS message, and waiting
for the response from the PF. Handle this early on during the VF
initialization.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Rafal Romanowski <rafal.romanowski@intel.com>
Co-developed-by: Mateusz Polchlopek <mateusz.polchlopek@intel.com>
Signed-off-by: Mateusz Polchlopek <mateusz.polchlopek@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/iavf/iavf.h
drivers/net/ethernet/intel/iavf/iavf_main.c
drivers/net/ethernet/intel/iavf/iavf_ptp.h [new file with mode: 0644]
drivers/net/ethernet/intel/iavf/iavf_types.h [new file with mode: 0644]
drivers/net/ethernet/intel/iavf/iavf_virtchnl.c