From patchwork Fri Apr 21 07:15:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wenjing Qiao X-Patchwork-Id: 126355 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5D088429A9; Fri, 21 Apr 2023 09:21:12 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1BE644113C; Fri, 21 Apr 2023 09:21:12 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 82CF4410DD for ; Fri, 21 Apr 2023 09:21:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1682061670; x=1713597670; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=QDdbnpy1TsjFlPnJqIQPv12Ndm7J+42rafG/3d2Mrhg=; b=TOQLsExocgozphlhGy+53ZvYrdQBDZVKPh3zjIrXVBEnHsrcUUpPcv+q 3WqvQNEpNT8u7c58oW+vFJWCsKmIp3qYIcnu28bjnidCaVk8j7nHxQVWZ aMBjbfBv54395TfH/T8iWToiTmbemULzdFNM31/r42A4M6wSB/DCcWWqh shHiJrhiMINKlWkQV9XlB9pKZQwEi8wuJ8qK4Nogcsl3Htwe9B7xKDdlf ut6l3jgZ6iQsZJkDKsdiXH7YyIYsu8q6A9j2xDied4nhg1zaVrXXt7Boh U3qc2gZN/6QriOB0JmPjhP3mmSK8IRC5AzPVtXDTrTiLSNxo3tLZip/Rf w==; X-IronPort-AV: E=McAfee;i="6600,9927,10686"; a="343424988" X-IronPort-AV: E=Sophos;i="5.99,214,1677571200"; d="scan'208";a="343424988" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Apr 2023 00:20:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10686"; a="756811878" X-IronPort-AV: E=Sophos;i="5.99,214,1677571200"; d="scan'208";a="756811878" Received: from dpdk-wenjing-01.sh.intel.com ([10.67.118.239]) by fmsmga008.fm.intel.com with ESMTP; 21 Apr 2023 00:20:56 -0700 From: Wenjing Qiao To: jingjing.wu@intel.com, beilei.xing@intel.com, qi.z.zhang@intel.com Cc: dev@dpdk.org, Wenjing Qiao Subject: [PATCH v2 0/7] update idpf and cpfl timestamp Date: Fri, 21 Apr 2023 03:15:56 -0400 Message-Id: <20230421071603.55680-1-wenjing.qiao@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230420091935.43116-2-wenjing.qiao@intel.com> References: <20230420091935.43116-2-wenjing.qiao@intel.com> MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Add timestamp offload feature support for ACC. Using alarm to save main time to solve timestamp roll over issue. Ajust timestamp mbuf registering at dev start. Wenjing Qiao (7): common/idpf: fix 64b timestamp roll over issue net/idpf: save main time by alarm net/cpfl: save main time by alarm common/idpf: support timestamp offload feature for ACC common/idpf: add timestamp enable flag for rxq net/cpfl: register timestamp mbuf when starting dev net/idpf: register timestamp mbuf when starting dev config/meson.build | 3 + drivers/common/idpf/base/idpf_osdep.h | 48 +++++++++ drivers/common/idpf/idpf_common_rxtx.c | 133 ++++++++++++++----------- drivers/common/idpf/idpf_common_rxtx.h | 5 +- drivers/common/idpf/version.map | 4 + drivers/net/cpfl/cpfl_ethdev.c | 19 ++++ drivers/net/cpfl/cpfl_ethdev.h | 3 + drivers/net/cpfl/cpfl_rxtx.c | 2 + drivers/net/idpf/idpf_ethdev.c | 19 ++++ drivers/net/idpf/idpf_ethdev.h | 3 + drivers/net/idpf/idpf_rxtx.c | 3 + meson_options.txt | 2 + 12 files changed, 186 insertions(+), 58 deletions(-)