From patchwork Fri Aug 12 11:21:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sunil Kovvuri X-Patchwork-Id: 9276797 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 99BC8600CB for ; Fri, 12 Aug 2016 11:28:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8A56728939 for ; Fri, 12 Aug 2016 11:28:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7F30C2897B; Fri, 12 Aug 2016 11:28:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F2C9B28939 for ; Fri, 12 Aug 2016 11:28:30 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bYAc4-00007X-Eb; Fri, 12 Aug 2016 11:26:56 +0000 Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bYAYk-0004PO-NF for linux-arm-kernel@lists.infradead.org; Fri, 12 Aug 2016 11:23:34 +0000 Received: by mail-pf0-x244.google.com with SMTP id h186so1416778pfg.2 for ; Fri, 12 Aug 2016 04:23:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=69qQgWaMQzbdU+PpPpVLrMqvla+8jr4i6EkBOVyp9yM=; b=CEpQAehSbQQVMC3jZmVxzjShBoNKS54sL0DPVPC8fPItJqwC1BlMbATFvzcpPtOGkI mYdEIQk8zn1OEvf11yXHOQS3U6FLz9eWdI1XtWywwlNetdcBBBW9VW1BSFsHgiC8OT6S yQ1L6eSH5y8sXh4MLJem+HWv8FCCp0Fj7p+aGoGV8nxChiAfBpV4o5UQQ7o8MjyFdpeT lx00AO7/nbwtfgIjeoIEBetpgF3+tkaEWBAYQFXsJVrK26WU0IIi0xL/DWK96hqIIVye 2wMzBOD55FwFd7H+vuNGlx9NFw/BrAW3Y0Ijd+5Jdd3Ebpx8cLk76nYVhre5gHu+wZlC F/UQ== 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=69qQgWaMQzbdU+PpPpVLrMqvla+8jr4i6EkBOVyp9yM=; b=VkIQhY/kNsl7SBDgBjLGM1k9GI0fMlicaWj732AW/KyONB8JIBpOcrSmyBcXnJSD+H AvRqVDeU6TxLSDBTwMwCLyVZq8XGDUnzSPKj/ZMzUGAz/2cmgPCadFieuu+ldVtuJKGw SeBCajSOoai6UrSVrjjAlBMVROlAYfiJpB/B1tMniJONZ+4CfP56pY5xnu0d8VBd+UAG Bo5IBAeMFiW96LdSyfJYnc24nYz0yXTb76BSHwu7pK6EYtbLZGKW0GlIuwBNxK223PLV J1bg81EW+8pp4uWmQ56kb4JhwFdrF1z2UJqSPfBTFHyqli8CzuS4VGaqNDXdmw4zC10n XjNg== X-Gm-Message-State: AEkoousjsT41U6exwXlhQMgZEGMDYAtghQ0aSSMEq+wfRx1amuTne3gb9Q8DiKXjGoW01A== X-Received: by 10.98.48.65 with SMTP id w62mr26388612pfw.18.1471000989486; Fri, 12 Aug 2016 04:23:09 -0700 (PDT) Received: from machine421.in.caveonetworks.com ([14.140.2.178]) by smtp.googlemail.com with ESMTPSA id ww14sm12306817pac.34.2016.08.12.04.23.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 12 Aug 2016 04:23:08 -0700 (PDT) From: sunil.kovvuri@gmail.com To: netdev@vger.kernel.org Subject: [PATCH v2 17/21] net: thunderx: Don't set mac address for secondary Qset VFs Date: Fri, 12 Aug 2016 16:51:40 +0530 Message-Id: <1471000904-21715-18-git-send-email-sunil.kovvuri@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1471000904-21715-1-git-send-email-sunil.kovvuri@gmail.com> References: <1471000904-21715-1-git-send-email-sunil.kovvuri@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160812_042331_079471_163E4C52 X-CRM114-Status: GOOD ( 10.48 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sunil Goutham , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Sunil Goutham Set MAC addresses only for primary VF's and don't for secondary VFs. Signed-off-by: Sunil Goutham --- drivers/net/ethernet/cavium/thunder/nicvf_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/cavium/thunder/nicvf_main.c b/drivers/net/ethernet/cavium/thunder/nicvf_main.c index dd57361..0b68f2b 100644 --- a/drivers/net/ethernet/cavium/thunder/nicvf_main.c +++ b/drivers/net/ethernet/cavium/thunder/nicvf_main.c @@ -1209,7 +1209,7 @@ int nicvf_open(struct net_device *netdev) } /* Check if we got MAC address from PF or else generate a radom MAC */ - if (is_zero_ether_addr(netdev->dev_addr)) { + if (!nic->sqs_mode && is_zero_ether_addr(netdev->dev_addr)) { eth_hw_addr_random(netdev); nicvf_hw_set_mac_addr(nic, netdev); }