From patchwork Wed Oct 26 19:46:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Miller X-Patchwork-Id: 119175 X-Patchwork-Delegate: maxime.coquelin@redhat.com 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 9F7F9A04FD; Wed, 26 Oct 2022 21:47:19 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 92C8C42BAB; Wed, 26 Oct 2022 21:46:44 +0200 (CEST) Received: from mail-il1-f171.google.com (mail-il1-f171.google.com [209.85.166.171]) by mails.dpdk.org (Postfix) with ESMTP id 1995642B84 for ; Wed, 26 Oct 2022 21:46:40 +0200 (CEST) Received: by mail-il1-f171.google.com with SMTP id h18so1066495ilq.9 for ; Wed, 26 Oct 2022 12:46:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=atomicrules-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Tya9lmfss+sNFG4SeG+PmbNzsnwyuJq3NcJdkb9ICN4=; b=wAOYAxK2dd0A9RZcSFLPhkPr7pqHFpDJiT+EUZsX4SrjRuaD6WK+y36lbRdNx3LgkP U3jZAMvA9Ms/UFy3Uy7iyeKgA3dU4RZL1miubCoAuH6Fs/a/v3nh04uJQWwZX3fg/aQK +Pp7K8gLQdPra3HiL1ieWV/18NoGeTQBTeE1QHF7+WlwTWub7d8Zs+2l2Acl1RuBX9UU qFQj+hZr/RZE7/H2oxxw20SbtDV3Szlu2/5BSg1pVTu7pOSvnU5Nv86R4PzP+rxGmw7J NFeuuwRq7uBvuzDCT0hHc1biOoOjwP32AZuO8WUqQBG40S45YT3vxX1oudgvUS+j2EeI ucoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Tya9lmfss+sNFG4SeG+PmbNzsnwyuJq3NcJdkb9ICN4=; b=bExI9T09c/alT/qXjE6kLRVI74vfrb3iOW9F2WhoTqq+120G1S+ZYHFQvGxrTAgQzO U3JRVihLb07Z03irxsOEUnMeeAZoLXxCqRFwm4WmTs/MwU8n7ZMvU1w+foKZbfAqLvUM voIq4SOaXdRVeNwWSMoSIvuDV+PRX+j2PdDEUCnQ+63gu7nRbEZZOidOVR2ytbecl/9d s62GNGvU1Wx9b0iI/QsJIEjBbCMuw7ApIh1tdPr+CG8gZCVxgc63sC8Scyn4QMmQjBJ7 r4tM9v9g6VPC5I5i3S+ni8+yMw8ivIPlo4IhabI2CAcIjIT+xcjbRsNo5ZykTNqX0HHH d+5Q== X-Gm-Message-State: ACrzQf31II4OOw6PE/YfCDZ9npEm+SlyOVk+uEtFPTMSlmS2kaMZif/P 1RXifVd4HNSt730UmQCWX1om/GHMbR2dTA== X-Google-Smtp-Source: AMsMyM63l++k9KoYpRoYrg1krb4/qHqB5d/oGoGtm6DfYjx4PlK7yi49fhYX+IILvnLbI3NqAT+HYg== X-Received: by 2002:a05:6e02:190a:b0:2fc:5333:c879 with SMTP id w10-20020a056e02190a00b002fc5333c879mr28061497ilu.183.1666813599523; Wed, 26 Oct 2022 12:46:39 -0700 (PDT) Received: from john-System-Product-Name.tds (h64-35-205-155.cntcnh.broadband.dynamic.tds.net. [64.35.205.155]) by smtp.googlemail.com with ESMTPSA id m1-20020a056e020de100b002faecf63c48sm2336169ilj.79.2022.10.26.12.46.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Oct 2022 12:46:39 -0700 (PDT) From: John Miller To: nicolas.chautru@intel.com Cc: dev@dpdk.org, ed.czeck@atomicrules.com, shepard.siegel@atomicrules.com, John Miller Subject: [PATCH 09/14] common/ark: add VF support to caps record Date: Wed, 26 Oct 2022 15:46:08 -0400 Message-Id: <20221026194613.1008232-9-john.miller@atomicrules.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221026194613.1008232-1-john.miller@atomicrules.com> References: <20221026194613.1008232-1-john.miller@atomicrules.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 Some HW variants support sr-iov, add this to the device capabilities record. Signed-off-by: John Miller --- drivers/common/ark/ark_common.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/common/ark/ark_common.h b/drivers/common/ark/ark_common.h index ba4c70f804..b940f31ea6 100644 --- a/drivers/common/ark/ark_common.h +++ b/drivers/common/ark/ark_common.h @@ -23,16 +23,19 @@ * Some HW variants require that PCIe read-requests be correctly throttled. * This is called "rqpacing" and has to do with credit and flow control * on certain Arkville implementations. + * isvf - + * Some HW variants support sr-iov virtual functions. */ struct ark_caps { bool rqpacing; + bool isvf; }; struct ark_dev_caps { uint32_t device_id; struct ark_caps caps; }; -#define SET_DEV_CAPS(id, rqp) \ - {id, {.rqpacing = rqp} } +#define SET_DEV_CAPS(id, rqp, vf) \ + {id, {.rqpacing = rqp, .isvf = vf} } /* Format specifiers for string data pairs */ #define ARK_SU32 "\n\t%-20s %'20" PRIU32