From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by dpdk.org (Postfix) with ESMTP id 9D2C9ADE5 for ; Wed, 4 Feb 2015 10:26:06 +0100 (CET) Received: by mail-wi0-f172.google.com with SMTP id h11so30271780wiw.5 for ; Wed, 04 Feb 2015 01:26:06 -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=I4k2IcUCCBBWdRkGezPIiEOaFeXMyQoG9rRvZ9K3vG4VwvkKX1CzAqZG7l5vP2Nci9 EV0rG9KW1O9Aa9M/2IQKUOfo7UjkbQiorFghVZUTfpwv4p0YG/6Vh2ptuU/QXdUqTEOk 5wIzF2CSoOJDWZ6iLnV1mMlKUc1IGSRME1q/o6nupS6xCXm1fuuh4Vt3VgnCcGt483NF WzvUMEToPx7EXXwiguV1b+ZYE5Tex1yi7tEDMAR25VoVitJo1WOJVUzuv1a2G7k9Efxb UrcOOerA/SeyBs17vVdyW/lq/Q0LO7U2i6vwttt6v0CSbTfUyH1Go79F+7rz/N7XVsFw Fw7w== X-Gm-Message-State: ALoCoQlRh+Ytuthfm4kCm74aSey96UkYnaNtpShCpGKNXngWKasdR9sgDUIx1ipoh3SyMtdZCoZ/ X-Received: by 10.181.13.136 with SMTP id ey8mr2560777wid.50.1423041966523; Wed, 04 Feb 2015 01:26:06 -0800 (PST) Received: from glumotte.dev.6wind.com (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id a13sm2346491wic.3.2015.02.04.01.26.05 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 04 Feb 2015 01:26:06 -0800 (PST) From: Olivier Matz To: dev@dpdk.org Date: Wed, 4 Feb 2015 10:25:22 +0100 Message-Id: <1423041925-26956-18-git-send-email-olivier.matz@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1423041925-26956-1-git-send-email-olivier.matz@6wind.com> References: <1422623775-8050-1-git-send-email-olivier.matz@6wind.com> <1423041925-26956-1-git-send-email-olivier.matz@6wind.com> Subject: [dpdk-dev] [PATCH v2 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: Wed, 04 Feb 2015 09:26:06 -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