From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by dpdk.org (Postfix) with ESMTP id F32F62A9 for ; Tue, 28 Oct 2014 15:06:05 +0100 (CET) Received: by mail-wi0-f177.google.com with SMTP id ex7so1727991wid.10 for ; Tue, 28 Oct 2014 07:14:52 -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:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=m9GIvHEZ6MxxQBT6nDOLcVPFpcHdRNHkXE9Jvp2OZ+0=; b=e6Uh+u/7Oj4GVBdzlOvhZH56gz4a3d9Ylmeutl9KMnlxYVBQkRkAogj84xUaBeDHYD KvkuCiVfNsIPoWvIi4u/MSGKAdUNM29egOzB6ZDt15l6NEPJWjtEOPSeiub7QWURssg2 Q5Wsp45xNnNvr7Dd/1jfiNdW4ZTM/vlNnhvr9VaBOP2OXCyeY6auqUABXB5+rBX36xVt wa/CKJiOgmV8XOfOcNxDjSKd4N6Fait5uJ72vwAwXrEIQ6QIWWGCVGEyyu0NGHJfrXWD V97OhIFnY7vOC8F3N8BD/KqMJ+qOcn3lA+M5EbBW4UjlSvFwY/iKdZaUv2lKcsXuJSJW xXNg== X-Gm-Message-State: ALoCoQkTg7CB8O48Pg/qUN0l8F6NGanULe+vAGCjFl9/CCu5irKrN9bzSLnN5sOk+1omvfjkO2CQ X-Received: by 10.180.19.68 with SMTP id c4mr5247416wie.44.1414505691837; Tue, 28 Oct 2014 07:14:51 -0700 (PDT) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by mx.google.com with ESMTPSA id ko10sm1962906wjb.48.2014.10.28.07.14.50 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Oct 2014 07:14:50 -0700 (PDT) From: Thomas Monjalon To: Jingjing Wu Date: Tue, 28 Oct 2014 15:14:33 +0100 Message-ID: <5358622.rv8SXXlaQB@xps13> Organization: 6WIND User-Agent: KMail/4.14.2 (Linux/3.17.1-1-ARCH; KDE/4.14.2; x86_64; ; ) In-Reply-To: <1413939687-11177-17-git-send-email-jingjing.wu@intel.com> References: <1411711418-12881-1-git-send-email-jingjing.wu@intel.com> <1413939687-11177-1-git-send-email-jingjing.wu@intel.com> <1413939687-11177-17-git-send-email-jingjing.wu@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v4 16/21] ethdev: define structures for configuring flexible payload 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: Tue, 28 Oct 2014 14:06:06 -0000 2014-10-22 09:01, Jingjing Wu: > +/** > + * A structure defined a field vector to specify each field. > + */ > +struct rte_eth_field_vector { > + uint8_t offset; /**< Source word offset */ > + uint8_t size; /**< Field Size defined in word units */ > +}; I'm sorry but I don't understand this patch at all. I think the reason is that I need more information about flex filter. > + > +/** > + * payload type > + */ > +enum rte_eth_payload_type { > + RTE_ETH_PAYLOAD_UNKNOWN = 0, > + RTE_ETH_L2_PAYLOAD, > + RTE_ETH_L3_PAYLOAD, > + RTE_ETH_L4_PAYLOAD, > +}; > + > /** > * flow type > */ > @@ -92,6 +111,30 @@ enum rte_eth_flow_type { > }; > > /** > + * A structure used to select fields extracted from the protocol layers to > + * the Field Vector as flexible payload for filter > + */ > +struct rte_eth_flex_payload_cfg { > + enum rte_eth_payload_type type; /**< payload type */ > + uint8_t nb_field; /**< the number of following fields */ > + struct rte_eth_field_vector field[0]; > +}; > + > +#define RTE_ETH_FDIR_CFG_FLX 0x0001 > +/** > + * A structure used to config FDIR filter global set > + * to support RTE_ETH_FILTER_FDIR with RTE_ETH_FILTER_SET operation. > + */ > +struct rte_eth_fdir_cfg { > + uint16_t cmd; /**< sub command */ > + /** > + * A pointer to structure for the configuration e.g. > + * struct rte_eth_flex_payload_cfg for FDIR_CFG_FLX > + */ > + void *cfg; > +};