From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.droids-corp.org (zoll.droids-corp.org [94.23.50.67]) by dpdk.org (Postfix) with ESMTP id 634EB5B09 for ; Fri, 23 Jan 2015 18:53:43 +0100 (CET) Received: from was59-1-82-226-113-214.fbx.proxad.net ([82.226.113.214] helo=[192.168.0.10]) by mail.droids-corp.org with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YEiTv-0000lb-Qo; Fri, 23 Jan 2015 18:57:22 +0100 Message-ID: <54C28A9E.6030303@6wind.com> Date: Fri, 23 Jan 2015 18:53:34 +0100 From: Olivier MATZ User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0 MIME-Version: 1.0 To: "Liu, Jijiang" References: <1421883395-27235-1-git-send-email-olivier.matz@6wind.com> <1421883395-27235-10-git-send-email-olivier.matz@6wind.com> <1ED644BD7E0A5F4091CF203DAFB8E4CC01DB63D6@SHSMSX101.ccr.corp.intel.com> In-Reply-To: <1ED644BD7E0A5F4091CF203DAFB8E4CC01DB63D6@SHSMSX101.ccr.corp.intel.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [RFC 09/16] testpmd: move csum_show in a function 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: Fri, 23 Jan 2015 17:53:43 -0000 Hi Jijiang, On 01/23/2015 12:03 PM, Liu, Jijiang wrote: > + /* display warnings if configuration is not supported by the NIC */ > + rte_eth_dev_info_get(port_id, &dev_info); > + if ((ol_flags & TESTPMD_TX_OFFLOAD_IP_CKSUM) && > + (dev_info.tx_offload_capa & DEV_TX_OFFLOAD_IPV4_CKSUM) == 0) { > + printf("Warning: hardware IP checksum enabled but not " > + "supported by port %d\n", port_id); > + } > + if ((ol_flags & TESTPMD_TX_OFFLOAD_UDP_CKSUM) && > + (dev_info.tx_offload_capa & DEV_TX_OFFLOAD_UDP_CKSUM) == 0) { > + printf("Warning: hardware UDP checksum enabled but not " > + "supported by port %d\n", port_id); > + } > + if ((ol_flags & TESTPMD_TX_OFFLOAD_TCP_CKSUM) && > + (dev_info.tx_offload_capa & DEV_TX_OFFLOAD_TCP_CKSUM) == 0) { > + printf("Warning: hardware TCP checksum enabled but not " > + "supported by port %d\n", port_id); > + } > + if ((ol_flags & TESTPMD_TX_OFFLOAD_SCTP_CKSUM) && > + (dev_info.tx_offload_capa & DEV_TX_OFFLOAD_SCTP_CKSUM) == 0) { > + printf("Warning: hardware SCTP checksum enabled but not " > + "supported by port %d\n", port_id); > + } > > The ESTPMD_TX_OFFLOAD_OUTER_IP_CKSUM check is missed here. Yes, it should be added in this patch: ethdev: add outer IP offload capability flag I'll do it for the next version. Regards, Olivier