Message ID | 20230309113414.1335770-2-cengiz.can@canonical.com |
---|---|
State | New |
Headers | show
Return-Path: <kernel-team-bounces@lists.ubuntu.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=<UNKNOWN>) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=k/+JZPrQ; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PXRtB6CSzz1yWp for <incoming@patchwork.ozlabs.org>; Thu, 9 Mar 2023 22:34:41 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from <kernel-team-bounces@lists.ubuntu.com>) id 1paEXT-0000Ys-JZ; Thu, 09 Mar 2023 11:34:27 +0000 Received: from smtp-relay-internal-1.internal ([10.131.114.114] helo=smtp-relay-internal-1.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from <cengiz.can@canonical.com>) id 1paEXQ-0000Ye-QF for kernel-team@lists.ubuntu.com; Thu, 09 Mar 2023 11:34:24 +0000 Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 778DD3F196 for <kernel-team@lists.ubuntu.com>; Thu, 9 Mar 2023 11:34:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1678361664; bh=GglC0saf9yNuRoDrmorINi67a6NeutjQw+adGwC6jIA=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=k/+JZPrQcMCxMjjR5i5LMFecct4pcPXFbS79cW2VgUP3snjtGhz+gi2rJ17FYSn8w bSpXW+qKRLtg2AlSIw7bxsjvddwvoF4NIVq09b5q8iuN+VodPGduYI9FU8W7wg8k+/ xA9iidHqPptLHnhJzXL1dRCT9D0+dYxa8fYBGE2tkuQnp+aUUoWDt8mfhhzr3mTyOi oQ92n3OMtKiBePKn63JV6J3WvuTA9ESMD/6JImcTJCu2OhMgaR21TPKp3XtBloVnsg LtWA5kmjRFEKm4INkgrJQlBbfmDvSvAVp5mrCf4Lx1JbIeUfmcS/C+v8NgxH2S29dM TewSdas4f6gWA== Received: by mail-ed1-f71.google.com with SMTP id p36-20020a056402502400b004bb926a3d54so2553688eda.2 for <kernel-team@lists.ubuntu.com>; Thu, 09 Mar 2023 03:34:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678361664; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GglC0saf9yNuRoDrmorINi67a6NeutjQw+adGwC6jIA=; b=WaYJ2p4SwZiMS/UnSyb+2PpBBF1LaRRHdBV3J+yTWQvPRkR7HcrKhgGmc4j7Hjkt36 bgtgJhiXKoekKLEY+kHeqOMG5DhkiRWEJymKvaemV5466bgxktgrZjtaMuXKLvOJODrk RT9YQJ84Vvuc/n0ivDR/wdN+y20ypd6ZKfk3d2tN78mnyPzKDqW9+N2jswT3mWB9UHXd p313iOyehl49RoXCw7qDYh2S+XR8x/5BqUWOrxSi/HxlugwhkVkeZBRB00CdQ3yPf5/Q yFNoe0D80+qB5BXpzOgAXH5XVXNwPpFIEoDzBGIxpgrP92lHlLajeWdh8bqPZv6aXT6Z LqOA== X-Gm-Message-State: AO0yUKX0KELW6WoGZmq4ZbYlH/fkStQTZNmuMu223YlBnZPQU1MuC12f rdTKPyySP42iFR4LRM1VTmPzULizA6L893/uzheBM6VHxvaQtO8HeZnq1vUMT4h3bJDmsLlytSy JZJQii/uC8QliljaDn4+tm80T+aALp8ZceiHzKCCRkVFUYUnrTscb X-Received: by 2002:aa7:cf0a:0:b0:4ae:e5ab:46d7 with SMTP id a10-20020aa7cf0a000000b004aee5ab46d7mr21431262edy.8.1678361663914; Thu, 09 Mar 2023 03:34:23 -0800 (PST) X-Google-Smtp-Source: AK7set+ouVFJ/iB/B3eNt3TcilUwO/74u+A+rzRdkZMK5zSaDIy9+umC+iuZN9QCarLl1HFINCpY+Q== X-Received: by 2002:aa7:cf0a:0:b0:4ae:e5ab:46d7 with SMTP id a10-20020aa7cf0a000000b004aee5ab46d7mr21431246edy.8.1678361663651; Thu, 09 Mar 2023 03:34:23 -0800 (PST) Received: from localhost ([2001:67c:1560:8007::aac:c03c]) by smtp.gmail.com with ESMTPSA id f27-20020a50a6db000000b004acc61206cfsm9487582edc.33.2023.03.09.03.34.22 for <kernel-team@lists.ubuntu.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 03:34:23 -0800 (PST) From: Cengiz Can <cengiz.can@canonical.com> To: kernel-team@lists.ubuntu.com Subject: [SRU Kinetic 1/1] net: sched: disallow noqueue for qdisc classes Date: Thu, 9 Mar 2023 14:34:14 +0300 Message-Id: <20230309113414.1335770-2-cengiz.can@canonical.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230309113414.1335770-1-cengiz.can@canonical.com> References: <20230309113414.1335770-1-cengiz.can@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions <kernel-team.lists.ubuntu.com> List-Unsubscribe: <https://lists.ubuntu.com/mailman/options/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=unsubscribe> List-Archive: <https://lists.ubuntu.com/archives/kernel-team> List-Post: <mailto:kernel-team@lists.ubuntu.com> List-Help: <mailto:kernel-team-request@lists.ubuntu.com?subject=help> List-Subscribe: <https://lists.ubuntu.com/mailman/listinfo/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" <kernel-team-bounces@lists.ubuntu.com> |
Series |
[SRU,Kinetic,1/1] net: sched: disallow noqueue for qdisc classes
|
expand
|
diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c index 394eaf5d7566..f4fc32356e28 100644 --- a/net/sched/sch_api.c +++ b/net/sched/sch_api.c @@ -1114,6 +1114,11 @@ static int qdisc_graft(struct net_device *dev, struct Qdisc *parent, return -ENOENT; } + if (new && new->ops == &noqueue_qdisc_ops) { + NL_SET_ERR_MSG(extack, "Cannot assign noqueue to a class"); + return -EINVAL; + } + err = cops->graft(parent, cl, new, &old, extack); if (err) return err;