From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier MATZ Subject: Re: [RFC 09/16] testpmd: move csum_show in a function Date: Fri, 23 Jan 2015 18:53:34 +0100 Message-ID: <54C28A9E.6030303@6wind.com> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: "dev-VfR2kkLFssw@public.gmane.org" To: "Liu, Jijiang" Return-path: In-Reply-To: <1ED644BD7E0A5F4091CF203DAFB8E4CC01DB63D6-0J0gbvR4kThpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 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