From patchwork Thu Sep 12 16:29:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Tu X-Patchwork-Id: 1161674 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=openvswitch.org (client-ip=140.211.169.12; helo=mail.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="MRNBUTpX"; dkim-atps=neutral Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46Tkkw3SFVz9sN1 for ; Fri, 13 Sep 2019 02:29:59 +1000 (AEST) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 57B7EC8B; Thu, 12 Sep 2019 16:29:56 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id CFEF2C6E for ; Thu, 12 Sep 2019 16:29:55 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 9001E7DB for ; Thu, 12 Sep 2019 16:29:55 +0000 (UTC) Received: by mail-pg1-f196.google.com with SMTP id 4so13731665pgm.12 for ; Thu, 12 Sep 2019 09:29:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=xy7SAF4MafBiqF+mu+EewVx7sEnpsSIwE1h79aUi/8E=; b=MRNBUTpXMmJ33EiHsbdfVB2k+82tUjodP3h3/i9d7sQZjc1pKocOuTERYC/NEoWIUH zcF+CyE6o4v/szaznZ0T8SGNFZOHpb7GtdCnmzF/O3pC2WYWnpjj2wxVYtf02V/J5UBN m46adoJ7Iv65w7Rh+236NabXMqz0qdzbuen4N8a1xozado2ARxCjnNFTxAjunMvIZjh6 5yTUEWw768gH+DTCTy4fiYmKV0NLgIBybjeYm+8V+4VxgyH622A7H2xQseQEPhrqlHNW pZFstFBx7pNySlhb+j99FaYBmP93tzssBb8Vu/rU+6XMWqnAS/G1iEJiHtyvayQ9JXuS sV9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=xy7SAF4MafBiqF+mu+EewVx7sEnpsSIwE1h79aUi/8E=; b=rGEhJpot0mscdmiBKrF/oCEdVoGf3Zh+8SFiWLEZHkzYx8BxaOTrsC5xO127sfifrY V2i3Px2WvkNnmUhN0bazSzevj7bPmxOkAmRQKEqjHQK4mYXvhOb66pDO1gZQWkfOHVUo BPv32tiAQffPVXqm8XiiJvZlYcQva0tmuRMP+evBuIIFM09GAlhWFXykiCvgf/PMECHr 0RD1gzBogJg5tF+Lm8OaHw9WN8UqjxEC9rpFJkP2BVKJRVDVG395wNZtQL/rQMxqCJXI 2fbSzu2O+h2KERWDdmyfTpn8GMdcSe7WkE3YIe2zo2q9p7uPB6ot0127r7YMFvaM6xyB d70w== X-Gm-Message-State: APjAAAXB4ywBVMsizSjYR98go+Z1moDSYjRgYV+FcgfWQXMj/wUtyL2i 1MaMaobRIsCMRIUjNskgdhpTS4xG6Bg= X-Google-Smtp-Source: APXvYqzu+SGElGHR/BATBgpbd1kPa6iE0Iuf73Djqmhhu24eYxhkRsyWjJVi0WT9UmK0JiTVBop3NA== X-Received: by 2002:a17:90a:24a8:: with SMTP id i37mr1036150pje.123.1568305794681; Thu, 12 Sep 2019 09:29:54 -0700 (PDT) Received: from sc9-mailhost3.vmware.com (c-76-21-95-192.hsd1.ca.comcast.net. [76.21.95.192]) by smtp.gmail.com with ESMTPSA id l62sm41799773pfl.167.2019.09.12.09.29.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 Sep 2019 09:29:53 -0700 (PDT) From: William Tu To: dev@openvswitch.org Date: Thu, 12 Sep 2019 09:29:27 -0700 Message-Id: <1568305767-99967-1-git-send-email-u9012063@gmail.com> X-Mailer: git-send-email 2.7.4 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Subject: [ovs-dev] [PATCH] dpdk: trivial: Fix comment and cast. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org Comment should start with capital letter. Remove unnecessary type casting. Signed-off-by: William Tu --- lib/dp-packet.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dp-packet.h b/lib/dp-packet.h index 14f0897fa637..5f703ad457b3 100644 --- a/lib/dp-packet.h +++ b/lib/dp-packet.h @@ -40,7 +40,7 @@ enum OVS_PACKED_ENUM dp_packet_source { DPBUF_MALLOC, /* Obtained via malloc(). */ DPBUF_STACK, /* Un-movable stack space or static buffer. */ DPBUF_STUB, /* Starts on stack, may expand into heap. */ - DPBUF_DPDK, /* buffer data is from DPDK allocated memory. + DPBUF_DPDK, /* Buffer data is from DPDK allocated memory. * ref to dp_packet_init_dpdk() in dp-packet.c. */ DPBUF_AFXDP, /* Buffer data from XDP frame. */ @@ -191,7 +191,7 @@ dp_packet_delete(struct dp_packet *b) if (b->source == DPBUF_DPDK) { /* If this dp_packet was allocated by DPDK it must have been * created as a dp_packet */ - free_dpdk_buf((struct dp_packet*) b); + free_dpdk_buf(b); return; }