From: "Yang, Qiming" Subject: Re: [PATCH v5] app/testpmd: supported offload capabilities query Date: Sat, 14 Jan 2017 03:06:03 +0000 Message-ID: References: <1482485513-7087-1-git-send-email-qiming.yang@intel.com> <1484191582-17293-1-git-send-email-qiming.yang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc: "Lu, Wenzhuo" To: "De Lara Guarch, Pablo" , "dev@dpdk.org" Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 4193F2E8A for ; Sat, 14 Jan 2017 04:06:07 +0100 (CET) In-Reply-To: Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" HI, Pablo > ... >=20 > > + > > + if (dev_info.rx_offload_capa & DEV_RX_OFFLOAD_TCP_CKSUM) { > > + printf("RX TCP checksum: "); > > + if (dev->data->dev_conf.rxmode.hw_ip_checksum) > > + printf("on\n"); > > + else > > + printf("off\n"); > > + } > > + > > + if (dev_info.rx_offload_capa & > > DEV_RX_OFFLOAD_OUTER_IPV4_CKSUM) > > + printf("RX Outer IPv4 checksum: "); >=20 > Missing on/off? > Qiming: I didn't find any switch for this feature in DPDK now. I'll=20 > fix the format problem. Thank you. I just saw your v6. So, what does this mean? If the device is capable of do= ing this, but there is no way to enable/disable it, it would mean that it w= ill be enabled or disabled by default, right? I see that X550 NIC is the only one capable of this. Maybe Wenzhuo can help= on clarifying this. I would say that, if it is enabled when it is capable, then you should prin= t "on", But printing only "RX Outer IPv4 checksum" does not give any inform= ation (when all the rest of the capabilities show on/off). Qiming: Ok, I'll check with Wenzhuo, Thank you for your advice for the unsu= itable print in this place . Thanks, Pablo =20