Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BD0B7C77B7F for ; Fri, 19 May 2023 15:00:46 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 3E1514257B; Fri, 19 May 2023 15:00:46 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 3E1514257B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1684508446; bh=jyghOc2Ghlw2ONzbMgLme3Xpf8y7GCgIplwWK/lx+Mc=; h=From:To:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:Cc:From; b=sZpAz7px4algS7rQiQFpX8xB5MGhlifgM4/9gJXaAnWVMPuzmQGiBUh0edzXuh+c7 cWVCpDAnYWz35dBWsQS4rjpw8Bs1CbtEhAT2gzANp25btA+42pJz6+vqUa7P2uM0Gw gr4idsLw3un48lV1YqOVhseeIN1s6LNxK0siyono8oBqT9W5NKz+w1C9tDGlvwdpkW DPkI0OYAOtqpPosZPMTlYJN1LbVt5nKqDQu5SfBojyDw1L7LewKY07ML4eU/5OQY4W OwaggmBghXnSDRsLsjvjmnh88BWOQE/oYaGIE1yZP93Pvia3EtigMRsnPWUQ5N6Bti 1KV6o2WBNSQuA== X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CiCVD_AeMZC2; Fri, 19 May 2023 15:00:45 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 0745B4257C; Fri, 19 May 2023 15:00:45 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 0745B4257C Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id BA3D61BF3A1 for ; Fri, 19 May 2023 15:00:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 9AE89611DF for ; Fri, 19 May 2023 15:00:43 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 9AE89611DF X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id o1aAQjsXXeI0 for ; Fri, 19 May 2023 15:00:42 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org B8AE660BEE Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by smtp3.osuosl.org (Postfix) with ESMTPS id B8AE660BEE for ; Fri, 19 May 2023 15:00:42 +0000 (UTC) X-IronPort-AV: E=McAfee;i="6600,9927,10715"; a="418087111" X-IronPort-AV: E=Sophos;i="6.00,177,1681196400"; d="scan'208";a="418087111" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 May 2023 08:00:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10715"; a="792397358" X-IronPort-AV: E=Sophos;i="6.00,177,1681196400"; d="scan'208";a="792397358" Received: from pgardocx-hp-z6-g4-workstation.igk.intel.com (HELO pgardocx-mobl1.igk.intel.com) ([10.237.95.41]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 May 2023 08:00:38 -0700 From: Piotr Gardocki To: intel-wired-lan@lists.osuosl.org Date: Fri, 19 May 2023 17:00:27 +0200 Message-Id: <20230519150029.370332-1-piotrx.gardocki@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1684508442; x=1716044442; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=8nz5xQ5Y9g6bTKd/gtB3fyMuzeVAPvRkzU9B3wqk5tg=; b=TfXO48vLeBpola2e6/L8bBW43OVCnVgNITmN9V2B0ULSUCU4VazQ/P3Q xSg/CaEd9nrEJxFphVjoZiY6NutCIbQ1NxjB5JirfhK2p5PSV2ITLDG0F 6p9h30Q6UfzXBEtwGzwOLNbFzE+asJWAyXoQa8a+JX9Dw8erq9rNWLagv j015vt2a1/57onREtkGEWnIrswI7rBhIRAhLjhIOv03gPtjIELN5rXlNj ZrGZKp1T8xndEI0SaY8AKBG/zQ3mn8WCnCIzxaYu2m0rv5Qa8aFIDgEfa hdFklXgZT1qaanu8ubl+B3xHH/jCvG/fSWeXq7n0FdaeAjZ8oGO0uDbxV g==; X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=TfXO48vL Subject: [Intel-wired-lan] [PATCH iwl-next v4 0/2] iavf: clean up procedure for changing interface's MAC address X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: przemyslaw.kitszel@intel.com, pmenzel@molgen.mpg.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" This patchset cleans .ndo_set_mac_address callback up in iavf. The second patch addresses potential issue with iavf_add_filter function failing to add a new MAC filter to the list. However, it does make an assumption that the new MAC address is different than the current one. The first patch protects from this issue by skipping the entire procedure if the MAC address doesn't actually change. Without these two patches iavf is sending two AdminQ commands to PF driver: VIRTCHNL_OP_ADD_ETH_ADDR to add new MAC filter and VIRTCHNL_OP_DEL_ETH_ADDR to remove the old one. Even though it does not seem to cause issues, it is very error prone. Skipping these callbacks is more reliable. v2: added missing Signed-off-by and comma in second patch v3: fixed malformed second patch v4: fixes misspelling "cleanup" -> "clean up" Piotr Gardocki (1): iavf: add check for current MAC address in set_mac callback Przemek Kitszel (1): iavf: fix err handling for MAC replace drivers/net/ethernet/intel/iavf/iavf_main.c | 48 +++++++++++---------- 1 file changed, 25 insertions(+), 23 deletions(-) -- 2.34.1 _______________________________________________ Intel-wired-lan mailing list Intel-wired-lan@osuosl.org https://lists.osuosl.org/mailman/listinfo/intel-wired-lan