From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v9 1/3] librte_net: add crc compute APIs Date: Tue, 04 Apr 2017 22:00:56 +0200 Message-ID: <12125749.0JfrvTu2Hz@xps13> References: <1490873422-13734-2-git-send-email-jasvinder.singh@intel.com> <1490890533-92231-1-git-send-email-jasvinder.singh@intel.com> <1490890533-92231-2-git-send-email-jasvinder.singh@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, olivier.matz@6wind.com, declan.doherty@intel.com To: Jasvinder Singh , pablo.de.lara.guarch@intel.com, bruce.richardson@intel.com Return-path: Received: from mail-wr0-f174.google.com (mail-wr0-f174.google.com [209.85.128.174]) by dpdk.org (Postfix) with ESMTP id B6C2B326B for ; Tue, 4 Apr 2017 22:00:58 +0200 (CEST) Received: by mail-wr0-f174.google.com with SMTP id k6so218639187wre.2 for ; Tue, 04 Apr 2017 13:00:58 -0700 (PDT) In-Reply-To: <1490890533-92231-2-git-send-email-jasvinder.singh@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2017-03-30 17:15, Jasvinder Singh: > +/** > + * CRC compute API > + * > + * @param data > + * Pointer to the packet data for CRC computation > + * @param data_len > + * Data length for CRC computation > + * @param type > + * CRC type (enum rte_net_crc_type) > + * > + * @return > + * CRC value > + */ > +uint32_t > +rte_net_crc_calc(const void *data, > + uint32_t data_len, > + enum rte_net_crc_type type); I still think returning a value from a data input is a kind of hash. And this is my wikipedia argument: https://en.wikipedia.org/wiki/List_of_hash_functions "This is a list of hash functions, including cyclic redundancy checks, checksum functions, and cryptographic hash functions." Anyway, I must accept the community decision. Now I would like to see a clear explanations of which algos are in librte_hash, and why we have CRC32c and Toeplitz.