From patchwork Mon Aug 22 15:06:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Chan X-Patchwork-Id: 12950730 X-Patchwork-Delegate: kuba@kernel.org 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9BE34C28D13 for ; Mon, 22 Aug 2022 15:09:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236025AbiHVPJe (ORCPT ); Mon, 22 Aug 2022 11:09:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235921AbiHVPJG (ORCPT ); Mon, 22 Aug 2022 11:09:06 -0400 Received: from mail-qt1-x832.google.com (mail-qt1-x832.google.com [IPv6:2607:f8b0:4864:20::832]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D90563DF3C for ; Mon, 22 Aug 2022 08:07:09 -0700 (PDT) Received: by mail-qt1-x832.google.com with SMTP id j17so8067978qtp.12 for ; Mon, 22 Aug 2022 08:07:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc; bh=lW+aRBABY6LQAf9GnaDCuQD8XbOsKF80aq7s3IVyhJE=; b=Xsw2DJaZmIouHVr86BUCkB7jKOOMzV/QdZB2pKAkJRbBotuii5Ftv5QAQZnwtfCn+I o+9CfGyqocMpM0/wBkf6vohroaGfCPd9B6UftcQlppMbytdGSBu4LwddGB5svjGjmSsl Q+QR1RGI6uAYtB6pTXLYMFS681+T5eCG3fmuQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc; bh=lW+aRBABY6LQAf9GnaDCuQD8XbOsKF80aq7s3IVyhJE=; b=Mz+9z++0W1KCFbY555SZCO4CMMYwNBSOgI84ZCZcA/tpukK2Dymx+rqugKDMsDRvaF HFJu89P5wQbVpIs1qzKsscFhaMrLGtA4svYwVKJRJgVI5PfvX56eqIFTwk3qKIJqVFzK BSpucclcb7nXm2fmtNbVeXkbOLF2JkuXBHqxkYrGqa+IQvoD33z1crrUrRORqeiZ2LAR 38CE0WFd4m9KTouzta3kv83fRgikAMvQvhiGDlhfAKhqQ3LXMkhsl2IAFjfdhmsSAyHY qS89au8sB4/UeuY+zy1mapAoOfvpNAZqDfbaBbwUgPEgFK0igqVj7LlFYRStfqRftOqt jxsw== X-Gm-Message-State: ACgBeo3fHey2Of1E4+Olpeik7CSODFYVnaE7c+zOKHxIFmDX0zJD6WN6 YD7CCSMertiho5WLzflyY101sA== X-Google-Smtp-Source: AA6agR6j5nJuMCgjel02eO+r5XO/4nXR8gbGj0SAeVVnBF4Kcvdb+Jho2GpJUCK/vubhZGEJtFuiuw== X-Received: by 2002:a05:622a:b:b0:342:f3de:e055 with SMTP id x11-20020a05622a000b00b00342f3dee055mr15294330qtw.43.1661180827570; Mon, 22 Aug 2022 08:07:07 -0700 (PDT) Received: from localhost.swdvt.lab.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id f39-20020a05622a1a2700b00342f05defd1sm9380836qtb.66.2022.08.22.08.07.06 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Aug 2022 08:07:07 -0700 (PDT) From: Michael Chan To: davem@davemloft.net Cc: netdev@vger.kernel.org, kuba@kernel.org, edumazet@google.com, pabeni@redhat.com, gospo@broadcom.com, Vikas Gupta Subject: [PATCH net 2/4] bnxt_en: set missing reload flag in devlink features Date: Mon, 22 Aug 2022 11:06:52 -0400 Message-Id: <1661180814-19350-3-git-send-email-michael.chan@broadcom.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1661180814-19350-1-git-send-email-michael.chan@broadcom.com> References: <1661180814-19350-1-git-send-email-michael.chan@broadcom.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org From: Vikas Gupta Add missing devlink_set_features() API for callbacks reload_down and reload_up to function. Fixes: 228ea8c187d8 ("bnxt_en: implement devlink dev reload driver_reinit") Reviewed-by: Somnath Kotur Signed-off-by: Vikas Gupta Signed-off-by: Michael Chan --- drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c b/drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c index 059f96f7a96f..a36803e79e92 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c @@ -1306,6 +1306,7 @@ int bnxt_dl_register(struct bnxt *bp) if (rc) goto err_dl_port_unreg; + devlink_set_features(dl, DEVLINK_F_RELOAD); out: devlink_register(dl); return 0;