From patchwork Thu Jan 24 03:53:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jie Pan X-Patchwork-Id: 50024 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 98C0629AC; Thu, 24 Jan 2019 04:41:17 +0100 (CET) Received: from smtp.jd.com (smtp.jd.com [58.83.206.59]) by dpdk.org (Postfix) with ESMTP id E2DCEDE3 for ; Thu, 24 Jan 2019 04:41:15 +0100 (CET) Received: from hb1-lan-wangyandlvs-01.hb1.jd.local (103.235.240.10) by HUB03.360buyAD.local (172.17.27.17) with Microsoft SMTP Server id 14.3.361.1; Thu, 24 Jan 2019 11:40:51 +0800 From: Jie Pan To: CC: , Jie Pan Date: Thu, 24 Jan 2019 11:53:03 +0800 Message-ID: <1548301983-20020-1-git-send-email-panjie5@jd.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 X-Originating-IP: [103.235.240.10] Subject: [dpdk-dev] [PATCH] lib/librte_kni: fix the type for mac address X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The type for mac address in struct rte_kni_conf should be unsigned. Signed-off-by: Jie Pan --- lib/librte_kni/rte_kni.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_kni/rte_kni.h b/lib/librte_kni/rte_kni.h index 02ca43b..d44496c 100644 --- a/lib/librte_kni/rte_kni.h +++ b/lib/librte_kni/rte_kni.h @@ -68,7 +68,7 @@ struct rte_kni_conf { __extension__ uint8_t force_bind : 1; /* Flag to bind kernel thread */ - char mac_addr[ETHER_ADDR_LEN]; /* MAC address assigned to KNI */ + uint8_t mac_addr[ETHER_ADDR_LEN]; /* MAC address assigned to KNI */ uint16_t mtu; };