From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751607AbdK3Tgd (ORCPT ); Thu, 30 Nov 2017 14:36:33 -0500 Received: from mail-wr0-f195.google.com ([209.85.128.195]:33641 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751163AbdK3Tga (ORCPT ); Thu, 30 Nov 2017 14:36:30 -0500 X-Google-Smtp-Source: AGs4zMaCsGByHTeQJ6QyPuICh1UxSPpH9M+623LbCQgluFC/haTY4FyZU1Sx4CPaVifpB0EcL3Dgqw== From: Scott Branden To: "David S. Miller" , "Allan W. Nielsen" , Andrew Lunn , Raju Lakkaraju , Florian Fainelli Cc: BCM Kernel Feedback , linux-kernel@vger.kernel.org, Steve Lin , netdev@vger.kernel.org, Michael Chan , Scott Branden Subject: [PATCH 1/2] net: ethtool: add support for reset of AP inside NIC interface. Date: Thu, 30 Nov 2017 11:35:59 -0800 Message-Id: <1512070560-16739-2-git-send-email-scott.branden@broadcom.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1512070560-16739-1-git-send-email-scott.branden@broadcom.com> References: <1512070560-16739-1-git-send-email-scott.branden@broadcom.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add ETH_RESET_AP to reset the application processor(s) inside the NIC interface. Current ETH_RESET_MGMT supports a management processor inside this NIC. This is typically used for remote NIC management purposes. Application processors exist inside some SmartNICs to run various applications inside the NIC processor - be it a simple algorithm without an OS to as complex as hosting multiple VMs. Signed-off-by: Scott Branden Reviewed-by: Andrew Lunn --- include/uapi/linux/ethtool.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/ethtool.h b/include/uapi/linux/ethtool.h index ac71559..44a0b67 100644 --- a/include/uapi/linux/ethtool.h +++ b/include/uapi/linux/ethtool.h @@ -1686,6 +1686,7 @@ enum ethtool_reset_flags { ETH_RESET_PHY = 1 << 6, /* Transceiver/PHY */ ETH_RESET_RAM = 1 << 7, /* RAM shared between * multiple components */ + ETH_RESET_AP = 1 << 8, /* Application processor */ ETH_RESET_DEDICATED = 0x0000ffff, /* All components dedicated to * this interface */ -- 2.5.0