From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) by dpdk.org (Postfix) with ESMTP id 3AF9BB410 for ; Fri, 13 Feb 2015 10:23:14 +0100 (CET) Received: by mail-wi0-f176.google.com with SMTP id h11so10414974wiw.3 for ; Fri, 13 Feb 2015 01:23:14 -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=QpVsxTLqfP5nCK21rJ8U78chOkg/oAEtso/nIvbPVgw=; b=ckh0vPF5bccYZ7O7l4UvgNj2a6rygiGovZj9yMxsfEJ/V02vQbP2oOpvaNnPzYm+Bm WTkeBuhLIUPUqbWZqoQLsRRABaTL8ebWt+I5i0QgSCIO3QvGm+Vsj0mkOdCKhbmyIKXP 2iEqmGnKARGl+JOXsq5u2n3TwHBdz2Hr6q0R2/OoOQPQQoyzSwPVjCOrubt44M8CPJlK MjZZBKwQEFRqWUvu3iWN6khPhKeDA8fmYgGdMRhbPq/HZd5g406sgogn8ew5jnkvHQR+ cH6qH3PhwU1kgBR3ALxu0ILsluIHV1JfdjaSTUOqnrSYRWoVY7H7THtIRjTSipOZ59oR PTfA== X-Gm-Message-State: ALoCoQmaDB9zG0uHbQ85sFLOQXkB/Mvp/vGx8RhKnMLOncjCCqcbQOf7Oir6KvjQPXN5ROtUPWM3 X-Received: by 10.180.86.35 with SMTP id m3mr4729329wiz.83.1423819394140; Fri, 13 Feb 2015 01:23:14 -0800 (PST) Received: from glumotte.dev.6wind.com (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id a5sm2100153wib.20.2015.02.13.01.23.13 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 13 Feb 2015 01:23:13 -0800 (PST) From: Olivier Matz To: dev@dpdk.org Date: Fri, 13 Feb 2015 10:22:48 +0100 Message-Id: <1423819371-24222-18-git-send-email-olivier.matz@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1423819371-24222-1-git-send-email-olivier.matz@6wind.com> References: <1423041925-26956-1-git-send-email-olivier.matz@6wind.com> <1423819371-24222-1-git-send-email-olivier.matz@6wind.com> Subject: [dpdk-dev] [PATCH v3 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, 13 Feb 2015 09:23:15 -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 fc08183..9de3e7e 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -2930,7 +2930,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