From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f47.google.com (mail-wg0-f47.google.com [74.125.82.47]) by dpdk.org (Postfix) with ESMTP id F3C78594D for ; Mon, 19 May 2014 15:56:48 +0200 (CEST) Received: by mail-wg0-f47.google.com with SMTP id x12so7984936wgg.30 for ; Mon, 19 May 2014 06:56:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=pFV3EtVzRJNqj9tDoFswM+fZ3QG3lCVix4+xRXZA+P8=; b=aNym+mUe+BeXUWhUPvbXMEvBZq3QuZYl1QBRJs0R4g4j4lguZlfkHorbjoeN38Q3HV 0Nvj5yFJ6lHQDVTfaksodPQbtiHEtXScFPJqpyfAER3suPtQuHp2Np6vhTv4AsHx5YCx kc5XmeCFbg70/FU82EFXOGH5T8jD6ZFrtrghs+tDz9xfBZBDvpUV5kymf6IhMXALMlfe Asbv+AWeymmnqSj5tvny/OeECBapcDUok4cabvjFnPuow2WTzg4oTB+EKP+Lw9fj+evL 4zopes/UsPd/dEbdwiVpMdBKj2ib29btjX1CRKi62OdioPiXLpqDORKOyK7QA5AHb52V /Wpw== X-Gm-Message-State: ALoCoQkFxpAjyOQ5Xf1iKsRxaARwp9HmAm3Jid1rRYTSaOgAFmYkUQ1H2jVgAJVtEKSV8OTkwQDK X-Received: by 10.180.13.113 with SMTP id g17mr13375221wic.48.1400507817957; Mon, 19 May 2014 06:56:57 -0700 (PDT) Received: from glumotte.dev.6wind.com (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id t18sm15201828wiv.16.2014.05.19.06.56.56 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 19 May 2014 06:56:57 -0700 (PDT) From: Olivier Matz To: dev@dpdk.org Date: Mon, 19 May 2014 15:56:18 +0200 Message-Id: <1400507789-18453-7-git-send-email-olivier.matz@6wind.com> X-Mailer: git-send-email 1.9.2 In-Reply-To: <1400507789-18453-1-git-send-email-olivier.matz@6wind.com> References: <1400507789-18453-1-git-send-email-olivier.matz@6wind.com> Subject: [dpdk-dev] [PATCH v2 06/17] mbuf: cosmetic changes in rte_mbuf structure X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 May 2014 13:56:49 -0000 Fix indentation of comments: avoid to exceed 80 columns, and try to start all comments at the same offset. Signed-off-by: Olivier Matz --- lib/librte_mbuf/rte_mbuf.h | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h index 1777b8b..5191eec 100644 --- a/lib/librte_mbuf/rte_mbuf.h +++ b/lib/librte_mbuf/rte_mbuf.h @@ -142,36 +142,36 @@ struct rte_mbuf { * config option. */ union { - rte_atomic16_t refcnt_atomic; /**< Atomically accessed refcnt */ - uint16_t refcnt; /**< Non-atomically accessed refcnt */ + rte_atomic16_t refcnt_atomic; /**< Atomically accessed refcnt */ + uint16_t refcnt; /**< Non-atomically accessed refcnt */ }; #else - uint16_t refcnt_reserved; /**< Do not use this field */ + uint16_t refcnt_reserved; /**< Do not use this field */ #endif - uint16_t ol_flags; /**< Offload features. */ - uint32_t reserved; /**< Unused field. Required for padding. */ + uint16_t ol_flags; /**< Offload features. */ + uint32_t reserved; /**< Unused field. Required for padding. */ /* valid for any segment */ - struct rte_mbuf *next; /**< Next segment of scattered packet. */ - void* data; /**< Start address of data in segment buffer. */ - uint16_t data_len; /**< Amount of data in segment buffer. */ + struct rte_mbuf *next; /**< Next segment of scattered packet. */ + void* data; /**< Start address of data in segment. */ + uint16_t data_len; /**< Amount of data in segment buffer. */ /* these fields are valid for first segment only */ - uint8_t nb_segs; /**< Number of segments. */ - uint8_t in_port; /**< Input port. */ - uint32_t pkt_len; /**< Total pkt len: sum of all segment data_len. */ + uint8_t nb_segs; /**< Number of segments. */ + uint8_t in_port; /**< Input port. */ + uint32_t pkt_len; /**< Total pkt len: sum of all segments. */ /* offload features, valid for first segment only */ union rte_vlan_macip vlan_macip; union { - uint32_t rss; /**< RSS hash result if RSS enabled */ + uint32_t rss; /**< RSS hash result if RSS enabled */ struct { uint16_t hash; uint16_t id; - } fdir; /**< Filter identifier if FDIR enabled */ - uint32_t sched; /**< Hierarchical scheduler */ - } hash; /**< hash information */ + } fdir; /**< Filter identifier if FDIR enabled */ + uint32_t sched; /**< Hierarchical scheduler */ + } hash; /**< hash information */ } __rte_cache_aligned; /** -- 1.9.2