Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp357964ybh; Sun, 12 Jul 2020 08:35:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/jb1jLkAC5fgDf9aaivlW9HOfo978HkWd3ocnRUfbVCuPGQgpNBZdspTzT7hNkQ3bHzpj X-Received: by 2002:a50:ef10:: with SMTP id m16mr84255286eds.206.1594568124645; Sun, 12 Jul 2020 08:35:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594568124; cv=none; d=google.com; s=arc-20160816; b=IISNum3LFck+Xg4IyjyG4PvBK+hSYXFp0R9+aUeKYRu1aXoNn0X6SH6AyA3nOs0k83 viFwlWLZUErpF7C8vDIJw92lHQSO8eb9bsN+x6NR9qFVkH0oBilsBYUUiCVzrLHvRzmw njtt3O1BOJ9t6pEW2NNuFh06pqEzWOZ/t4oxkhXpP1lyCkD5OfHSXLLiUP2/wPtccY+2 PKeExOhLwp+UXcmni4WPeFL/mS2WSiGpzcaDrBMDDPOPiIJOpZMVS5+iP0VawV78zYBu 96mCXjN7A7vTHLgJJsgDchv0hA9kJnihTEsk+wfDVnlxLNM3ipIFx9xSczUKezycrPsL qhMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=Idyj1I7vjdrOceeHysnaf7jAJSIV9GvrZeFd/HTJyLA=; b=n/jjomfwCkUlLAVeSPnyYs5BJRfxyTJkJX4I5cpsQ/Ipr9MRciDZqOF38hZB42G3n/ rPlbwqIj06rgu2/3HkmEQQZ0jVm4eqMt5zsZhRB9VURUqC2lr9HQlM7s5Vr5TaEkO6tw sfvKr5HEHGoXA1I1tE09E8e0CRH+QvNDI45hhG3BaEbtANAHoL/JMi7rsc44BxG2ieY8 /LcrHZ3+QuYU6Cs5Omrr2+Cnvv5OmFBHzg1bn2Qc5VD6mrbtI0re5Yp5RZz9q3ElHXI3 I0lnu09csK2IYeJOAKWHtR/GynCeDSXZknz8TY/8EBScpAqh7PCFypL5v9NdJdovwiLu 5Kng== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dk22si7401908edb.289.2020.07.12.08.35.01; Sun, 12 Jul 2020 08:35:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728957AbgGLPee (ORCPT + 99 others); Sun, 12 Jul 2020 11:34:34 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:34425 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728840AbgGLPee (ORCPT ); Sun, 12 Jul 2020 11:34:34 -0400 Received: from mail-qt1-f178.google.com ([209.85.160.178]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.129]) with ESMTPSA (Nemesis) id 1MrPyJ-1khQtT42qt-00oWzG for ; Sun, 12 Jul 2020 17:34:33 +0200 Received: by mail-qt1-f178.google.com with SMTP id e12so8162022qtr.9 for ; Sun, 12 Jul 2020 08:34:32 -0700 (PDT) X-Gm-Message-State: AOAM533ekxxlv8n8ygO9/xgh3NzeAs30Wrao/Bybsuv6LP1D2WVbiRXB j/hiGD37joYeVx+Z8cCzqt7auyVek5fuuosCJ6I= X-Received: by 2002:ac8:7587:: with SMTP id s7mr80539856qtq.304.1594568071912; Sun, 12 Jul 2020 08:34:31 -0700 (PDT) MIME-Version: 1.0 References: <20200712134331.8169-1-gage.eads@intel.com> <20200712134331.8169-10-gage.eads@intel.com> In-Reply-To: <20200712134331.8169-10-gage.eads@intel.com> From: Arnd Bergmann Date: Sun, 12 Jul 2020 17:34:15 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 09/20] dlb2: add ioctl to configure ports, query poll mode To: Gage Eads Cc: "linux-kernel@vger.kernel.org" , gregkh , magnus.karlsson@intel.com, =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:keklkOrfaEAOxlROulpgtPUdOn7C5N8t8riNxalMweqJ/WvkKKp ZIVhayde/8FSOq/sN71WXpRtiCjjtwERVsJxhU9JKHVrGWq2Pb9nMelz6lcOLD9Qeg/xWYj AFTpgE58SJJM2iVa6mTu5L+YhXu0w5hC68CPlaX9iMjyEspQK+5gVjm5+IwNbSKucpnsbKB UKqPUROCB2y4mvylyJPPw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:OHlQqMuATPc=:yVFKi/pYaVeKV54IpVdhtE IyIIYbiZiC8W8M0VY8sf8qe1JES6yCw7tcOTpkd5JR+WyMN6CY18nsfS2CEXLRKNQVr7kgD9l 07T291QoMzWceHORQhK0Bug14JQLkH5Razc6WHzPTorYpjWPAK3VSQprllTV7e7yGUMzszzIo tEhA2Mt2QvhmKCMu0QU9EULD6OIvgyRgHIT+1kQO0EVnXRLYKbWDx/XnkHVQK0f6k4QfTHa67 LsWmz7W9i5fxYnHQtZV7FAET6qODYVDG7i73AfUW5FXRND6c06fALAaVZxw+rlP0xwqYGNU0Q 0ZF6VyzdHjkPRiJ5wlAPpPOJJUq9sOLTMsCTzgOH3VHxeZ2V9+NKk58ysCh++Zix3a74MFG6W bNpEsdMxS/sdleY2pnBMXG6kQqFXhH1Csj9Jjsr5QBo5sPkoHL3eP7ud+J74awMbN4icwdGnL zO8vvgYicVlGP8kaxQG1yDi6Z8RwFMl1uqqJQLyKBqXThWWgNOC72bt9LpOlSCOcGrEJwwGmc SaSYlonvO8JcNOdd6aWSr8/lVyJxdzWePjf6rbRz+XMcSkSaaPAZB2PqQaqDOeW8LcQ8sq8y7 HOeSHJPDhy2Yqn38DvXuHGK5UVXqzHFIRqJVj0TznYDeyJIH13wzn5ACYI9iEbxFlyKvxVJSI kZsLDrsc0mYPeN6LB0q8iQeQ3FN65ASNzE1cBUSAZ4w2xC1oc5S9MiZJ3iOQX5FrlM7z70Op5 pvWoJ5VCmNdwBEpbNElt1fZGSa8L95i/0THHNVGYJw5auXo8b8fXyW1OSiTPnorMjoLh5NyD5 xNOAxuEcP0d2sNLefT2FoxhEyjKKOyPPViozcHXMFfgSTgvzSCG/Kq/EhfU/1QygdtwVahz Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 12, 2020 at 3:46 PM Gage Eads wrote: > enum dlb2_user_interface_commands { > DLB2_CMD_GET_DEVICE_VERSION, > DLB2_CMD_CREATE_SCHED_DOMAIN, > DLB2_CMD_GET_SCHED_DOMAIN_FD, > DLB2_CMD_GET_NUM_RESOURCES, > DLB2_CMD_GET_DRIVER_VERSION, > + DLB2_CMD_QUERY_CQ_POLL_MODE, > > /* NUM_DLB2_CMD must be last */ > NUM_DLB2_CMD, > @@ -427,6 +513,8 @@ struct dlb2_get_dir_queue_depth_args { > enum dlb2_domain_user_interface_commands { > DLB2_DOMAIN_CMD_CREATE_LDB_QUEUE, > DLB2_DOMAIN_CMD_CREATE_DIR_QUEUE, > + DLB2_DOMAIN_CMD_CREATE_LDB_PORT, > + DLB2_DOMAIN_CMD_CREATE_DIR_PORT, > DLB2_DOMAIN_CMD_GET_LDB_QUEUE_DEPTH, > DLB2_DOMAIN_CMD_GET_DIR_QUEUE_DEPTH, You cannot add new commands in the middle without changing the ABI. Maybe use individual #define lines in place of the enum to make sure these remain constants, or add a numeric value for each one when they are originally introduced. (yes, I realize this is the initial contribution of the new driver, but it still seems wrong to have it change in the middle of the series). Arnd