From patchwork Fri Aug 20 14:46:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: miter X-Patchwork-Id: 1519070 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=2605:bc80:3010::133; helo=smtp2.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=outlook.com header.i=@outlook.com header.a=rsa-sha256 header.s=selector1 header.b=P8p9sY93; dkim-atps=neutral Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Grkww0430z9sWq for ; Sat, 21 Aug 2021 00:46:39 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 949DC40532; Fri, 20 Aug 2021 14:46:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gmKhQ6HqS_Ed; Fri, 20 Aug 2021 14:46:32 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp2.osuosl.org (Postfix) with ESMTPS id BD16E400EA; Fri, 20 Aug 2021 14:46:31 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 9B5D3C0010; Fri, 20 Aug 2021 14:46:31 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) by lists.linuxfoundation.org (Postfix) with ESMTP id 4CCF4C000E for ; Fri, 20 Aug 2021 14:46:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 3C507613FE for ; Fri, 20 Aug 2021 14:46:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp3.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=outlook.com Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1nLBqOUCxR_U for ; Fri, 20 Aug 2021 14:46:26 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from AUS01-SY4-obe.outbound.protection.outlook.com (mail-sy4aus01olkn2146.outbound.protection.outlook.com [40.92.62.146]) by smtp3.osuosl.org (Postfix) with ESMTPS id D0F1E613AB for ; Fri, 20 Aug 2021 14:46:25 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GylvTRbOH6f1RicZz1zdO6NcSAgfGzdUl0BpH9l988Kv14qgFyovwagcKoMT2IdGaEIZLW+gTOavyanN+Xcyr2tGLLBP1DNYx9+PsOH3pJ4fYFjImPS6gxFsd4QdqFZUDNSuKgD6aR7ObmPiNJns7B0ihRzchtqSx+Q0PDQ6MMyD2jwipHWRMuw79Z9af0j1VE8p7LVb1YsKTbGc53sGUrqqXJ1kL+WlZM5OldwZ99u9zMDQ6CC6EYbc3JulhHdLMulk5n7rg7DG6MabKV46kjX88cbDYn1CA6psASLvBCpHmRV+C/iNSCxCWb/55h0NXKbauuiG3ZkiziptR5OkLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=z82fEsb+T6vShS3KWbWmVP5BwbgG3+COHn9dPxP9IvI=; b=UGQ7WIN/F68s7mksnP+uPou2Nphg1aqd93cjVL86rLYPiPFgMu7x7IiJBclSK8U68KyKYAxIg2ml86NhfhLnVLoNWaKXYT2L3Y1hy15QIEhpQsizyLCVdfdvU1xJ3ZWvq9/JjDfE765fEI8e4FZPMRm3V6PsNEvCunzVN+IjIqJCsWLrfM1nE5JToYhFQNdS5lQOQjaw8g9Gu+jaaR3L2p/zr60ttJJrQSm4MVwXCJTo+363SB3R58xwGQOFXFiT6cpB9hPouAoGYyegJthrYg51heydvZFm5r7Ng5SwW+bbhP2wQPu3EURqtWr3DceXnrrmy3MKn12aeVVcIEG+Kg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=z82fEsb+T6vShS3KWbWmVP5BwbgG3+COHn9dPxP9IvI=; b=P8p9sY93s7QwOh9h8PaXVCxPpWBH2Dj3ux9JFiZWfAwGm+vH0C1RXmP59OkIs3ppiXWgQnFyOmfQzO2cgH9C25GrAj4KFxETxYUFUydg6daWosUogm3CjkjqpRvWRXuTl3XJzTx0098acHHtZzisPyo3JGbO3h87LDp19JjIYkCi0CM7xiCSYFxnGTuc+ITN9RbJeo9il0tWyKB9h/s10PkHDF+VUmOBUFXdcMYGLYai3q2PXD2tXZwfqTFYqhzP6siS5QbkD2T1rgf33KKtMV0Yp5KqXMvZei2k6lJ59XRA1KwhiY3sCFWS/38kfiN3wphLEWhdqZg+a9/RDO3Gqg== Received: from MEYP282MB3302.AUSP282.PROD.OUTLOOK.COM (2603:10c6:220:15b::24) by ME3P282MB3326.AUSP282.PROD.OUTLOOK.COM (2603:10c6:220:133::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4436.19; Fri, 20 Aug 2021 14:46:20 +0000 Received: from MEYP282MB3302.AUSP282.PROD.OUTLOOK.COM ([fe80::81f0:9fe0:1936:54ee]) by MEYP282MB3302.AUSP282.PROD.OUTLOOK.COM ([fe80::81f0:9fe0:1936:54ee%8]) with mapi id 15.20.4436.019; Fri, 20 Aug 2021 14:46:20 +0000 From: lin huang To: "dev@openvswitch.org" Thread-Topic: [PATCH] dpif-netdev.c : dpif parameter is used, need to remove OVS_UNUSED Thread-Index: AQHXldIjRxVM/q+Uv0K6yllDfmF75w== Date: Fri, 20 Aug 2021 14:46:20 +0000 Message-ID: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-tmn: [ZgScRhNNLKTeNVGGT9zByZKepOVrvg+I] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 9d6f6fe4-bb8a-4754-e13f-08d963e94617 x-ms-traffictypediagnostic: ME3P282MB3326: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: IdMZJLjgdf519GxMU8812itP5T2l1nSCyVMCV5tNd6guo/kYUR5IGnbiICY3uieDKT5nOGDSLfG/WjC9P03WS8beWjoqoLQ0Pdhg4ibpbtrjjgTtKexx5hoEKryPRChizq/wEm6CQUqowwo861g4npJLbBx/ByDqzcu0uBA93jptX/ZjxV1xT1rKyqg83sTqEU4KyF8YniRgii8aQTVODhUEk5TjTDpYCAbFMhDxevvcjZYthOl3+lCntHLwU7Wv0FB4aeZZt/1sKZurzFamO7yufG59s16AuRugPVIZ2kVeV5mnBs+Zm1Ix/UCB9ITkVCBNWE5RyhmwDk4q4K7/Zfa2Zl/OaGaclRtlVhIbPo+mGYEGhrTVY9ncPr3bE1B/zEm2FIxxz4ADiU8gd3dyMF6+Vd1Zi3mU2n/xSt1/OHkryqp+Vhpp1NzduYhy/koe x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: Sb9s2X1TUPLKWLPepdQ0Fk6pma9qrmNcAnUNxF8vY2FzqP3O/J09PsAnED/rrqN2OThBaSoJszxrwj22rV8jnuEo1GMi/XrrMc6fEjDrQZUzVDgEt4jmcL13KchjKlTlBxUslu70zvrtp7Hi8RMfUA== x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MEYP282MB3302.AUSP282.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 9d6f6fe4-bb8a-4754-e13f-08d963e94617 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Aug 2021 14:46:20.3837 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: ME3P282MB3326 Subject: [ovs-dev] [PATCH] dpif-netdev.c : dpif parameter is used, need to remove OVS_UNUSED X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" From: linhuang Dpif parameter is used.So we need to remove OVS_UNUSED flag. Signed-off-by: linhuang --- lib/dpif-netdev.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) -- 2.12.2 diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index b3e57bb95..1708a5f9e 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev.c @@ -8418,9 +8418,9 @@ dpif_netdev_ct_get_tcp_seq_chk(struct dpif *dpif, bool *enabled) } static int -dpif_netdev_ct_set_limits(struct dpif *dpif OVS_UNUSED, - const uint32_t *default_limits, - const struct ovs_list *zone_limits) +dpif_netdev_ct_set_limits(struct dpif *dpif, + const uint32_t *default_limits, + const struct ovs_list *zone_limits) { int err = 0; struct dp_netdev *dp = get_dp_netdev(dpif); @@ -8443,10 +8443,10 @@ dpif_netdev_ct_set_limits(struct dpif *dpif OVS_UNUSED, } static int -dpif_netdev_ct_get_limits(struct dpif *dpif OVS_UNUSED, - uint32_t *default_limit, - const struct ovs_list *zone_limits_request, - struct ovs_list *zone_limits_reply) +dpif_netdev_ct_get_limits(struct dpif *dpif, + uint32_t *default_limit, + const struct ovs_list *zone_limits_request, + struct ovs_list *zone_limits_reply) { struct dp_netdev *dp = get_dp_netdev(dpif); struct conntrack_zone_limit czl; @@ -8483,8 +8483,8 @@ dpif_netdev_ct_get_limits(struct dpif *dpif OVS_UNUSED, } static int -dpif_netdev_ct_del_limits(struct dpif *dpif OVS_UNUSED, - const struct ovs_list *zone_limits) +dpif_netdev_ct_del_limits(struct dpif *dpif, + const struct ovs_list *zone_limits) { int err = 0; struct dp_netdev *dp = get_dp_netdev(dpif);