From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f54.google.com (mail-oi0-f54.google.com [209.85.218.54]) by dpdk.org (Postfix) with ESMTP id 1C50920F for ; Tue, 16 May 2017 19:10:39 +0200 (CEST) Received: by mail-oi0-f54.google.com with SMTP id w10so33804670oif.0 for ; Tue, 16 May 2017 10:10:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=RQc66md/PesXjWwXy0rW88A4xLmKP5HfnBH54cJLq7w=; b=j3pjeh0mXfp0qEi8b3CqI3Yqx45bxyhdmwuDeOjD61lgsa0caUg2pmpSIPCTb5Qb1W 82xErTioQ9+tSlYMdQx5/2BPVD12aCXkjMm/LnP6vGHglqJMl+sDQV5Ep9MhM6POLJbh N7kR5Y0xhAla/qV8evgyPpTRe9fMHWqKoincZ+DX2ff4xTjNFVT8TOoFLyOf42aYP/en ijQbDXHO8Fmq5c8CnRiWYufUQ5kHYTMs4SR+u6FG291iEFUvLmGfML7JnuDOmtLGYfTw lAUPZ6GMTsA3/CCZVzsHGLCIGxTPGTroKKOHN1APTN/SZ3Cojzoq963/XFazlXSpQDzj K8uQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=RQc66md/PesXjWwXy0rW88A4xLmKP5HfnBH54cJLq7w=; b=aX9YUiBhFulYADaaHMB1pFVGMaX/pDiN6Q9xo7BnZ9TpI7NDhl97GM30w+1NXSebyR ck6ag9J3SNrNDJV/84u3S6jg2rRJkub4msfMxycWshh66zwaTx645BUm9bH5I782gBWr X3jkUDV3GRHcMatjp1n10f4EiyDB7qD6kusz2h4UNZ6pv/zT4Tlpr8+IsUFgBxUrxf0M ViC7b2PmkXdHOYIPZED/DmIfqzETpOxTSj0gYndI21tazval0PrFjJkgAzYJFTh7O1Ce 0LVJpsdcSiPAmH2TX1/I5451oG5EYUt3nIlbT1u6EJVqRW5l/UrPsWa9oFVVj/VOMh6p fWxg== X-Gm-Message-State: AODbwcCa0GcepQrKdaObD+RxLGxWJ5ozZ34AG5/KV3Ukt2ddRLq5Khk6 Sy892moiX4U2f5BM1bUaQnErFK6h3Liw X-Received: by 10.157.51.11 with SMTP id f11mr5764212otc.43.1494954638192; Tue, 16 May 2017 10:10:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.42.193 with HTTP; Tue, 16 May 2017 10:10:17 -0700 (PDT) From: Sushil Adhikari Date: Tue, 16 May 2017 12:10:17 -0500 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Setting real MAC address in KNI application X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 May 2017 17:10:39 -0000 When I run the DPDK KNI application it gives random mac address to the ethernet ports. How can I configure it to set up the real MAC address of the hardware(ethernet ports)? It seems like I can get mac address by calling rte_eth_macaddr_get but to set up I need to call kni_net_set_mac which takes in net_device structure which again I don't have access to from my application. Is there a way to set up the mac address of dpdk ports to its original mac address in kni application.