From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) by dpdk.org (Postfix) with ESMTP id 991FD2BF4 for ; Wed, 23 May 2018 14:10:45 +0200 (CEST) Received: by mail-wr0-f194.google.com with SMTP id w10-v6so3247847wrk.9 for ; Wed, 23 May 2018 05:10:45 -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=JrBaYqkkGSdfOsGuTEWmdFCjewsRFFp9mr5NTIWHWBY=; b=ee7727dJItsj2feLu3m4HmQ7VehGvXPcd8dW76flLW6DbkiiTBc0GRM9u9ChO04ish V0oRQFmpKL/dG0SDtI+wV5Kkm8PMFxIiQzgAfOZxAyUg3U2dcq3dTWc0zPD33fDBBT8s hjsx4+GAFMSpMbI0HVKBNHRT4g/+qxzbQeRdH9+7Nf+xiNzOWKWg5qq18hmTBxXQKIiH OTx7luJEH7ikfBmcQpCc4HWWGIodMrCQoYpDATdWkyvHXR5BP90YOKA3zOnLE0tqMuv6 Ec0khoqBVcr1T7mKgZjnTYTX0GQEQV26c6VoXt2bR9FIEuL/i/7/Oz2kJoII6Bwz/xpp AjYw== 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=JrBaYqkkGSdfOsGuTEWmdFCjewsRFFp9mr5NTIWHWBY=; b=oKF1dtC9H1WB3fSLD3jb04g/vuwT0zng+gkgUJPRznyFEW1Off29CM7zDb0liptF77 Rz7+qH+c3sbCZsNeVQ661oFQz0VgnjoIOiAIbhvYS2GCoTtiabclQ4kS2APnNLcjDTqN eSM+nBeygssw+vWJcyhbQixa5Ud3pYf+TfDK/B4GyJ9yxurN0MY3IUXoqZTnjwY9LAoz kx60duCtUBVBLfmfyqzcyEXRhLG1lHYy6mXTJF/EfkiLdrGvdzmV1DhRszHsbbLRmZbF oOxaoILRvDb9pUdoCcmZ3Hg9s7SC7O0bZZuGgScQDc2PhOdZMOl9lcyY8m/3nbXotJcZ 1dcA== X-Gm-Message-State: ALKqPwf4HQdLVm+VHS9DA2BYyMPDmTW/P/JMEi5/LvATYqAEP8M0hpqM eZaYgsQI8Kzxbbd4eO6gB7Y= X-Google-Smtp-Source: AB8JxZqYPZupB95yz4ZVM4tVjkAGC0Mg4/6vUxLCkNssEU0XUGaxh+Cbp9wL10xEGwd/bNdkvjn/Bg== X-Received: by 2002:adf:b782:: with SMTP id s2-v6mr689662wre.247.1527077445283; Wed, 23 May 2018 05:10:45 -0700 (PDT) Received: from localhost ([2a00:23c5:be9a:5200:ce4c:82c0:d567:ecbb]) by smtp.gmail.com with ESMTPSA id f6-v6sm13208833wrj.63.2018.05.23.05.10.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 May 2018 05:10:44 -0700 (PDT) From: luca.boccassi@gmail.com To: Andy Green Cc: Bruce Richardson , dpdk stable Date: Wed, 23 May 2018 13:09:28 +0100 Message-Id: <20180523121010.8385-17-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 multicast bit clearing' 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:45 -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 7fe415ff0cb92c03b4989e10035997abbe69a674 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Thu, 17 May 2018 21:49:47 +0800 Subject: [PATCH] net: explicit cast of multicast bit clearing [ upstream commit beb4076567441bb6f936f99f442c2a8de911bb3c ] GCC 8.1 warned: rte_ether.h:213:13: warning: conversion from 'int' to 'uint8_t' {aka 'unsigned char'} may change value [-Wconversion] addr[0] &= ~ETHER_GROUP_ADDR; Fixes: 7ef007291004 ("ethdev: random MAC address") Signed-off-by: Andy Green Acked-by: Bruce Richardson --- lib/librte_net/rte_ether.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_net/rte_ether.h b/lib/librte_net/rte_ether.h index 16dddb388..6cd822950 100644 --- a/lib/librte_net/rte_ether.h +++ b/lib/librte_net/rte_ether.h @@ -210,7 +210,7 @@ static inline void eth_random_addr(uint8_t *addr) uint8_t *p = (uint8_t *)&rand; rte_memcpy(addr, p, ETHER_ADDR_LEN); - addr[0] &= ~ETHER_GROUP_ADDR; /* clear multicast bit */ + addr[0] &= (uint8_t)~ETHER_GROUP_ADDR; /* clear multicast bit */ addr[0] |= ETHER_LOCAL_ADMIN_ADDR; /* set local assignment bit */ } -- 2.14.2