From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) by dpdk.org (Postfix) with ESMTP id D235358CB for ; Fri, 30 Jan 2015 14:16:43 +0100 (CET) Received: by mail-wi0-f179.google.com with SMTP id l15so2600855wiw.0 for ; Fri, 30 Jan 2015 05:16:43 -0800 (PST) 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:in-reply-to :references; bh=4QOeVcOqhFN+5o/Qlxy2B9IK4v3Ci6tsgZM4IaSRb+Y=; b=nLPxU9UOCZWFl5UxyIBUKt1tgDsWaK1P4T0mRrGSkLdRRlRgxYl7VpsGg4NQI2O3f1 42ubIns2BqD+hgqN3eJjL2jOBWdLmqsAfgXreZ52QN/uS7JC992lpulx1LJ/MTh+73pb /fjXu4dWRkF3/XiyRxEUisBjpiYqiW/hmG47RBGs9fj6wg6/ZnLadkp8M5J4tFiwv4xg JQQXNYuI9IxFdg+7xcOroM/9yQTcZk/1oKzXxDVdfVvgGWNACkZ/oAokKJoYFFU1AEOe pMfPZRjQARYeYZ3hrBvRnCUoVz5TePgmqZDMQC0bXPojSTyVdpQTR1kONDbBjX7QjpBB dzwA== X-Gm-Message-State: ALoCoQko7soL7kMg4o/ogMoB1AyK3VKA4P8g65/8ubul2jr2SgmOBfkbLOKdzEibgu4ba2Pcnmgu X-Received: by 10.194.77.75 with SMTP id q11mr12379284wjw.116.1422623803754; Fri, 30 Jan 2015 05:16:43 -0800 (PST) Received: from glumotte.dev.6wind.com (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id li7sm6911300wic.4.2015.01.30.05.16.43 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 30 Jan 2015 05:16:43 -0800 (PST) From: Olivier Matz To: dev@dpdk.org Date: Fri, 30 Jan 2015 14:16:12 +0100 Message-Id: <1422623775-8050-18-git-send-email-olivier.matz@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1422623775-8050-1-git-send-email-olivier.matz@6wind.com> References: <1421883395-27235-1-git-send-email-olivier.matz@6wind.com> <1422623775-8050-1-git-send-email-olivier.matz@6wind.com> Subject: [dpdk-dev] [PATCH 17/20] testpmd: add a warning if outer ip cksum requested but not supported 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, 30 Jan 2015 13:16:44 -0000 Signed-off-by: Olivier Matz --- app/test-pmd/cmdline.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 70ab126..186da7b 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -2914,7 +2914,11 @@ csum_show(int port_id) printf("Warning: hardware SCTP checksum enabled but not " "supported by port %d\n", port_id); } - + if ((ol_flags & TESTPMD_TX_OFFLOAD_OUTER_IP_CKSUM) && + (dev_info.tx_offload_capa & DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM) == 0) { + printf("Warning: hardware outer IP checksum enabled but not " + "supported by port %d\n", port_id); + } } static void -- 2.1.4