From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0066.outbound.protection.outlook.com [104.47.34.66]) by dpdk.org (Postfix) with ESMTP id 0A8DA1B0FF; Sat, 29 Sep 2018 07:42:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vKvlM/m5d1uk0mu0pTqwUsIE1ZzNMDxI4733ioZoY7A=; b=MHq41poOsTlj6wiGqgJfr1Uz0swexUEJc8pZZSuhfwsxTs41lHuwAq7g4QEGaU1kN7icYqzTxhAsg1AF9m5B5c3U7RmeYuUR3OOXdHb4FJNQQIl9KiMABiK+YNdgQpDGbqWWpEL+IcMAwZjYcNyPs1UpaBTv2ghTWKxwgOXIpi0= Received: from BYAPR07MB5365.namprd07.prod.outlook.com (20.177.125.18) by BYAPR07MB5717.namprd07.prod.outlook.com (20.178.0.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1164.25; Sat, 29 Sep 2018 05:42:39 +0000 Received: from BYAPR07MB5365.namprd07.prod.outlook.com ([fe80::2047:9647:f196:bde0]) by BYAPR07MB5365.namprd07.prod.outlook.com ([fe80::2047:9647:f196:bde0%6]) with mapi id 15.20.1143.022; Sat, 29 Sep 2018 05:42:39 +0000 From: "Mody, Rasesh" To: "dev@dpdk.org" CC: "Mody, Rasesh" , "ferruh.yigit@intel.com" , Dept-Eng DPDK Dev , "stable@dpdk.org" Thread-Topic: [PATCH v2 3/5] net/bnx2x: fix to disable further interrupts Thread-Index: AQHUV7c6PCUwYCnmGEyHQUNI7AQDhQ== Date: Sat, 29 Sep 2018 05:42:39 +0000 Message-ID: <1538199734-23357-3-git-send-email-rasesh.mody@cavium.com> References: <1537394318-17682-1-git-send-email-rasesh.mody@cavium.com> In-Reply-To: <1537394318-17682-1-git-send-email-rasesh.mody@cavium.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: CO1PR15CA0075.namprd15.prod.outlook.com (2603:10b6:101:20::19) To BYAPR07MB5365.namprd07.prod.outlook.com (2603:10b6:a03:64::18) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Rasesh.Mody@cavium.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [198.186.1.5] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; BYAPR07MB5717; 6:Of2hLORYJ1Uu0Qy9Q47ECnhY4o9OqWkjJZBZhR1QFWulV9Msnour/Ud7ZrupJ90rUwViYoO6UCyQDoggqGx8eRYecf/KTat6VNQS3dopvuyzmHv/3K4al6BSAa8B1pJsZGvYJ4VQHITMEMpitmNSca7RaF+uAW9Ud+ourdCtihVEwk9FrXErREA7r4S8c/M3+xoEm+lKBnGBBGkZule+yNfBd5wFEl5OXD2IIGnJbW+tQW6sH5pDhw2f53vTiW4xOd+GUzTJiLdgL3QTxK5xL8RuBhlYor1CSeAfjQ3wOC+FzoFkbLHeE0qmlKgMPQ0nVhzfwXvqVp/e05DSKlHTnS6miytNHQf3obM5YCOtxoCtq7T7MDQdmhXdIe6HZMzYWK58LFBwqcOvqOa7bbOOHk/cefTMCUJOaezE+dFylIKxwShOwqbMB7QmrfORaZriY4uhdEzTiCjkJsYB8zIv1Q==; 5:5uqJl5zOvrRBhFZ/sN/TX37pGxut74uKtwnjbxakHe9dTkYctVBwRXpNjFibqwTeH9H/nq4MegC1Fs5eCrBUauQecidipwp1Rz9aacNM5ePVZvKhep3bHzfqJf7GKn7XCpWbjzItpL1NSP1lheT5pnKYusCzWuXO1GEdwnmCK80=; 7:jPBtKKJDx1/39/3mfSzw1+oQE0hTZGiwmLLdCrS8oNb21ZFhdUXh8HZc66mV4nA5FFXbdrUxbUDOFEIGk51mgPSkh1DNjp8ozygx7/BqotHro8RSlWSDiazhK0N/cNyAT4n7ikJNZiuql+Q+rccicqTg+B059iXtssquqX9APT9nVmqGkl/vdOk/u1zt1Ak7ju6vkXFE2sWiXtoQ3/uP1SykVtDTQnQMztQNUytOgsr387cxWMmrTlrT4wINHcST x-ms-office365-filtering-correlation-id: cc78d01f-c96f-4891-e6c7-08d625ce5d2a x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:BYAPR07MB5717; x-ms-traffictypediagnostic: BYAPR07MB5717: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(823301075)(10201501046)(93006095)(93001095)(3231355)(944501410)(52105095)(3002001)(149066)(150057)(6041310)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051); SRVR:BYAPR07MB5717; BCL:0; PCL:0; RULEID:; SRVR:BYAPR07MB5717; x-forefront-prvs: 0810818DA0 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(1496009)(136003)(39860400002)(346002)(396003)(366004)(376002)(199004)(189003)(186003)(81156014)(81166006)(11346002)(6512007)(71190400001)(6486002)(8676002)(7736002)(53936002)(305945005)(446003)(6916009)(71200400001)(5660300001)(486006)(1730700003)(34290500001)(8936002)(2616005)(6436002)(76176011)(476003)(5640700003)(99286004)(105586002)(2351001)(52116002)(106356001)(54906003)(26005)(256004)(68736007)(36756003)(2906002)(2501003)(102836004)(4326008)(316002)(86362001)(2900100001)(14454004)(97736004)(3846002)(6116002)(6506007)(72206003)(5250100002)(386003)(25786009)(478600001)(66066001); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR07MB5717; H:BYAPR07MB5365.namprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: /fL4zt2d+uMLfl3xMQdoe2oegj91TxQfXuS9ofd+jRjjJWsXV26WhjyRBpx8/CRAp5dZ7LfmCVznHeMRmyJkVDFcywFr2EWgDwWcOz51tfHvvgk9vXOf4FEQ8yCmtonzZ3DBvsceHn1hAa2pcuT/3VtmiAAJaRkJI7XmefB0FPYunLEUeTgEQttBqcN0u4GZIjV4VwleIR3mB4Lmpw/WVW2hgnSV8XenpP7Gts1NLVUMjKP9uEWItPLl0db0HAcgLZvFhSN4DsEOkZRSkoZXXkPNIcCIzPNKgLQ28zxhu7zqPDXbb/Y0iy1dtpG+T6b3+zrwDOOmhaWQmQG3qHPJWwgAwLfnBPaXq68kCMF7GqY= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-Network-Message-Id: cc78d01f-c96f-4891-e6c7-08d625ce5d2a X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Sep 2018 05:42:39.6140 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR07MB5717 Subject: [dpdk-dev] [PATCH v2 3/5] net/bnx2x: fix to disable further interrupts X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Sep 2018 05:42:41 -0000 Fix to disable further fastpath/slowpath interrupts. These will be enabled again by their respective handlers Fixes: 540a211084a7 ("bnx2x: driver core") Cc: stable@dpdk.org Signed-off-by: Rasesh Mody --- drivers/net/bnx2x/bnx2x.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/bnx2x/bnx2x.c b/drivers/net/bnx2x/bnx2x.c index 93f8586..0225bea 100644 --- a/drivers/net/bnx2x/bnx2x.c +++ b/drivers/net/bnx2x/bnx2x.c @@ -4553,12 +4553,18 @@ int bnx2x_intr_legacy(struct bnx2x_softc *sc, int s= can_fp) fp =3D &sc->fp[i]; mask =3D (0x2 << (fp->index + CNIC_SUPPORT(sc))); if (status & mask) { + /* acknowledge and disable further fastpath interrupts */ + bnx2x_ack_sb(sc, fp->igu_sb_id, USTORM_ID, + 0, IGU_INT_DISABLE, 0); bnx2x_handle_fp_tq(fp, scan_fp); status &=3D ~mask; } } =20 if (unlikely(status & 0x1)) { + /* acknowledge and disable further slowpath interrupts */ + bnx2x_ack_sb(sc, sc->igu_dsb_id, USTORM_ID, + 0, IGU_INT_DISABLE, 0); rc =3D bnx2x_handle_sp_tq(sc); status &=3D ~0x1; } --=20 1.7.10.3