From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) by dpdk.org (Postfix) with ESMTP id 82D9D2C6E for ; Wed, 23 May 2018 14:10:48 +0200 (CEST) Received: by mail-wr0-f196.google.com with SMTP id i12-v6so12898603wrc.4 for ; Wed, 23 May 2018 05:10:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=yHZT2UH5wrNO3wAu8a/3QZZv3JrCu08urF1kHwoYmR0=; b=gOPo/SdlgZBF24+hq4OHqjinTLbod0n0OPxi1Yb7xMmTlBKIcsMA8WeR27tqCAHaMT rY6LSmgjyOEwv72hslvYX53MMMxRagykSIYASMxNz+++V+Nhve2At5BhgvkZP7Wu0YjT nLqIDWd5JrYAlgAA40sHwlzIfmL8Rh6GZAE7NUqDYKVztwMdvp2Mtt0WZCi5ETRYAjRB A/7PaKFaglg18FSAW4FxggME7fQJhKjcsHrm7O3IfZf2VUWtNEk7wEpBNn1Vy2gQdWeb gRninS5yyGy/Q66f8mg7LRsnF7s8tLjkKvQTvU7RRfdxVp8RhuWlh5nYCfFi+AhdxmcK rt5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=yHZT2UH5wrNO3wAu8a/3QZZv3JrCu08urF1kHwoYmR0=; b=qF0apDoivJoC3DNOYBinQoEPxAZ8Sx+j746KxxT7cMgfQt2g4P1aPQLBJ+sfEceI1R GhdbS3wS1i91u30/+avsVlk/vH+ShqV2Fb2Z5KQ5wxFs/ND51xH+LBPD/gjKjhkaU6MP Ud9/5r30jxGhSoc8CPF9Y5EFF0fIeSGD8TuZoMYCYG8vRhlrWjKzE38xmXWHDD4uCgmA vT5ffQZD2BwQCvaPJdfO01QDTYUXcwTWMYjPUXMWmza6BaSD4Yzb5C94zxA1m+wB+4PJ ysx00wpxsHzjwCoZuNdO8VzTeVhBLgJT/zhQUAW2ViH/FQCcdWg4HQEgQz1F0b4pdwqu K7oQ== X-Gm-Message-State: ALKqPwdUn0FGnt8vTbZT8GIeu5Rq7v7J91E51sO0Rutsr1BdG3cOu6CC FU7KdQSM4TT6oePUa0S5r13r3pcLOZY= X-Google-Smtp-Source: AB8JxZreUWPUlXOSA+QXiFUHm4O/5wpHYoGEuLnW/2Ktm/4NEsQkUAyXToso7X65BK0JHDcmkFjH4w== X-Received: by 2002:adf:c709:: with SMTP id k9-v6mr2380850wrg.65.1527077448264; Wed, 23 May 2018 05:10:48 -0700 (PDT) Received: from localhost ([2a00:23c5:be9a:5200:ce4c:82c0:d567:ecbb]) by smtp.gmail.com with ESMTPSA id 5-v6sm6368545wre.41.2018.05.23.05.10.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 May 2018 05:10:47 -0700 (PDT) From: luca.boccassi@gmail.com To: Andy Green Cc: dpdk stable Date: Wed, 23 May 2018 13:09:30 +0100 Message-Id: <20180523121010.8385-19-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180523121010.8385-1-luca.boccassi@gmail.com> References: <20180516101323.2234-2-luca.boccassi@gmail.com> <20180523121010.8385-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'net: explicit cast of protocol in IPv6 checksum' has been queued to stable release 18.02.2 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 May 2018 12:10:48 -0000 Hi, FYI, your patch has been queued to stable release 18.02.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/25/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From 5be4597ab2937fa41489f537a0767a0209c7464f Mon Sep 17 00:00:00 2001 From: Andy Green Date: Thu, 17 May 2018 21:50:17 +0800 Subject: [PATCH] net: explicit cast of protocol in IPv6 checksum [ upstream commit 8bf255bb3862d8f35496b26bc8c2511239bdc18b ] GCC 8.1 warned: In function 'rte_ipv6_phdr_cksum': rte_ip.h:378:18: warning: conversion to 'uint32_t' {aka 'unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] psd_hdr.proto = (ipv6_hdr->proto << 24); Fixes: 6006818cfb26 ("net: new checksum functions") Signed-off-by: Andy Green --- lib/librte_net/rte_ip.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_net/rte_ip.h b/lib/librte_net/rte_ip.h index edbe4335c..c924aca7f 100644 --- a/lib/librte_net/rte_ip.h +++ b/lib/librte_net/rte_ip.h @@ -375,7 +375,7 @@ rte_ipv6_phdr_cksum(const struct ipv6_hdr *ipv6_hdr, uint64_t ol_flags) uint32_t proto; /* L4 protocol - top 3 bytes must be zero */ } psd_hdr; - psd_hdr.proto = (ipv6_hdr->proto << 24); + psd_hdr.proto = (uint32_t)(ipv6_hdr->proto << 24); if (ol_flags & PKT_TX_TCP_SEG) { psd_hdr.len = 0; } else { -- 2.14.2