Message ID | 20200710023018.31905-4-saeedm@mellanox.com |
---|---|
State | Accepted |
Delegated to: | David Miller |
Headers | show
Return-Path: <netdev-owner@vger.kernel.org> X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=mellanox.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=Mellanox.com header.i=@Mellanox.com header.a=rsa-sha256 header.s=selector1 header.b=ZjwSR9rO; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4B2xqZ1qY6z9sTF for <patchwork-incoming-netdev@ozlabs.org>; Fri, 10 Jul 2020 12:31:06 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727071AbgGJCbF (ORCPT <rfc822;patchwork-incoming-netdev@ozlabs.org>); Thu, 9 Jul 2020 22:31:05 -0400 Received: from mail-eopbgr30081.outbound.protection.outlook.com ([40.107.3.81]:54404 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726945AbgGJCbE (ORCPT <rfc822;netdev@vger.kernel.org>); Thu, 9 Jul 2020 22:31:04 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NB6VdEO+6abSBOM27eBouBu5cxut3p+rwm3v2FljgorBKW1neM1SDJzBMbpfHPTJEEl9dml91tkGoZZF0wfaju/I/i25SECJnPpfq6ZdZv0OE529BY7/YF31FAIKBoduA46F5pYQBjZvDu30GB4vi9YA8H9oRlY3U2H2Zl5G1KIUaAVIoYJkyNf+K+vqiMljbKSoeTyPx9o3wg9pjsYWEdGOXKS2xm2w/LndkOofmc445PHbCk4/7lM9TaGB//fZkMO8j7IQS9+lgip/O5QsD96a5XLUrnv90XQxqVXZt+wmK+Vl7tMVF6hjHwI6ZuWvJ8msBMw/K0aQyrA1i2UKjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3PLNHH4vKpKDJ03yy8uZp+/whE2W1IGyj6TBD0CbM2E=; b=S4ma4U/3OfM2eztx4nEcSp5p+FBOaQQyyEAZPj7NttlDMauDg+qKXuAlFKqPz1wsyvWIzB3gHQ/SVI6AzxImzAaW2gsbbZKZpuwOX4WFcoHoQ5xvYIvVlLMJcOf7i3rZ2vQgIqFTVX6mFoo5M+TUQ8fyorCVroQAkisCvAj3gYA2LsGAGBhObWf5RqeENUwIZqtm931g/mPmKAYXjhv21XgJfonk1Wrr3q6E8Be6sSB6GdoMM0nV7JIKsijBegKUWDauKF7G//9ArAO+dZJNb4tuuI7uYoIrJ8OY8y8w7XNNq9EhencBKnuhqgMNJAX2QzFfcWNiEcugCLmeeF/SgA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3PLNHH4vKpKDJ03yy8uZp+/whE2W1IGyj6TBD0CbM2E=; b=ZjwSR9rOy/7tu1NQglGZCQGNPB7MWZZLTkZ/1+5TL2DiiyB2M3MNnaEapOrlIbgqwV9/IZebj6TJG9Qi1pAPh0EqZCuvGCgJxvQ17APwSYviTE83dcWSehh5G0R6PPm3vJ/qwUmgDxzCzQpHkhecOCNY0h/X6iM7xUAvR0fzZG8= Authentication-Results: davemloft.net; dkim=none (message not signed) header.d=none;davemloft.net; dmarc=none action=none header.from=mellanox.com; Received: from VI1PR05MB5102.eurprd05.prod.outlook.com (2603:10a6:803:5e::23) by VI1PR05MB7120.eurprd05.prod.outlook.com (2603:10a6:800:185::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.22; Fri, 10 Jul 2020 02:30:54 +0000 Received: from VI1PR05MB5102.eurprd05.prod.outlook.com ([fe80::2405:4594:97a:13c]) by VI1PR05MB5102.eurprd05.prod.outlook.com ([fe80::2405:4594:97a:13c%2]) with mapi id 15.20.3174.022; Fri, 10 Jul 2020 02:30:54 +0000 From: Saeed Mahameed <saeedm@mellanox.com> To: "David S. Miller" <davem@davemloft.net>, Jakub Kicinski <kuba@kernel.org> Cc: netdev@vger.kernel.org, Vlad Buslov <vladbu@mellanox.com>, David Ahern <dsahern@gmail.com>, Roi Dayan <roid@mellanox.com>, Saeed Mahameed <saeedm@mellanox.com> Subject: [net V2 3/9] net/mxl5e: Verify that rpriv is not NULL Date: Thu, 9 Jul 2020 19:30:12 -0700 Message-Id: <20200710023018.31905-4-saeedm@mellanox.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200710023018.31905-1-saeedm@mellanox.com> References: <20200710023018.31905-1-saeedm@mellanox.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BYAPR06CA0064.namprd06.prod.outlook.com (2603:10b6:a03:14b::41) To VI1PR05MB5102.eurprd05.prod.outlook.com (2603:10a6:803:5e::23) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from smtp.office365.com (73.15.39.150) by BYAPR06CA0064.namprd06.prod.outlook.com (2603:10b6:a03:14b::41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.21 via Frontend Transport; Fri, 10 Jul 2020 02:30:52 +0000 X-Mailer: git-send-email 2.26.2 X-Originating-IP: [73.15.39.150] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 08d87f7c-7119-4a8d-765d-08d82479455b X-MS-TrafficTypeDiagnostic: VI1PR05MB7120: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <VI1PR05MB7120EC2CEE65CC8516E933D3BE650@VI1PR05MB7120.eurprd05.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: a4M3QfVb3Eyuh6R9Eb8AD/4HX1Gr9IuMYa18kkhNWaZFFBSpy8u+9Ty9/L6TCcLkwIWud1HamoHwgvgTds4ZATYWqOoTSc4V2cRWv6qSHdYtCBYsiEX/YUyOqTBtz0Xj7Msbgd9+/G5pnFkfnjifGTa4GazZT0CQ2HsSqueqmJrA/yrON8TfaxKq3IyqG50P0OAJ5iy9Orp++9QuaZNtxE+DiQ4Ks8G3uBOgw/ElYneF0ZuafEFJpgz70NuqLu9AR36VbE5GUDg/mxMJpxVSsZX5CaOUGfuxzK9HNER9DtIGa4iURGVnxcViPCnbovb7JxKgpnzM94RVi0WvNwYG3vgWqqzon135rAEMFc7FEuIwtDkMP2z6MOGTZ3z6kPCp X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR05MB5102.eurprd05.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(396003)(376002)(136003)(39860400002)(366004)(346002)(478600001)(26005)(4326008)(86362001)(52116002)(83380400001)(956004)(2906002)(186003)(16526019)(6506007)(2616005)(6666004)(15650500001)(5660300002)(8676002)(8936002)(66946007)(107886003)(66556008)(316002)(45080400002)(66476007)(1076003)(6512007)(110136005)(36756003)(6486002)(54906003)(54420400002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: /8gZOKXvFIo+K05RgE8vFI4U3JJlDTZMrq65P0T/vEIeE9taInsglNB8QNw3Bbx2RnZ1Z3ovlKAbrcQ0wi4x2kXsYhhfg9CFfifjx4Mx1QMibo1E8bCaOIoj2+XQWEjuOnMJkk0qfcs6PxGVwlHznBP/lw3enkU/Xgpppw9DWVNxz80B/DcIqA2Z8899kgC8AzTFPR1yGAjJKtgjrrdjR6efvr8i3Ojh3FMQUYeO+6Xutk6M2iauDu5j7W1HwxP2OpviP6XB8xt5vddfZ/3+r0+wptDbNRv9Y3hL7BVOZ1TDNNrszCzk0HGU+Kggd7zQhEErsniePSGy4QzF/AcV2kTq2pF4fQPszxK1yYAclps20dYP2Ij6ZuWCR6RWLCClVNNh9jcXrJF5av+RyoXKQN/vsdMPQetTz02WTDbfGuMoquwb6W+uo8XwCKlAyHpepAhfwdosddtFWSIUqJsdptCFjh7UuPDxAzDrtj9MpNc= X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 08d87f7c-7119-4a8d-765d-08d82479455b X-MS-Exchange-CrossTenant-AuthSource: VI1PR05MB5102.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jul 2020 02:30:54.7948 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: vrC7VdX0ef8F+YGCrsjfA2le5EYRMwlv4yM+H49TB+Bv3yjL/R48UcBsHQKFJZmxbJzYfEi8/c+Aqt4vIu/hyg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR05MB7120 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: <netdev.vger.kernel.org> X-Mailing-List: netdev@vger.kernel.org |
Series |
[net,V2,1/9] net/mlx5: Fix eeprom support for SFP module
|
expand
|
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c index 7fc84f58e28a..75f169aef1cf 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c @@ -4670,9 +4670,10 @@ static bool is_flow_rule_duplicate_allowed(struct net_device *dev, struct mlx5e_rep_priv *rpriv) { /* Offloaded flow rule is allowed to duplicate on non-uplink representor - * sharing tc block with other slaves of a lag device. + * sharing tc block with other slaves of a lag device. Rpriv can be NULL if this + * function is called from NIC mode. */ - return netif_is_lag_port(dev) && rpriv->rep->vport != MLX5_VPORT_UPLINK; + return netif_is_lag_port(dev) && rpriv && rpriv->rep->vport != MLX5_VPORT_UPLINK; } int mlx5e_configure_flower(struct net_device *dev, struct mlx5e_priv *priv,