From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0046.outbound.protection.outlook.com [104.47.38.46]) by dpdk.org (Postfix) with ESMTP id CB6E31B128; Wed, 19 Sep 2018 23:59:44 +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=c3gwf0ol6mfzsqykPzFeby+862m5CXvdkUg7EVcrV4b86lih7+TG5c2U2OFSogYZLWruPGI2PPRphFS9CHKFYaNZe4Bbx9f0ymh+y5XZVoCBTjy6gplMJEdoZzd7Bw7BOjEIuwwsbaB51P6G5y3lSLibmkjWaJzvJBeeDmxCUq0= Received: from BYAPR07MB5365.namprd07.prod.outlook.com (20.177.125.18) by BYAPR07MB5703.namprd07.prod.outlook.com (20.178.0.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.17; Wed, 19 Sep 2018 21:59:42 +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.017; Wed, 19 Sep 2018 21:59:42 +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 3/5] net/bnx2x: fix to disable further interrupts Thread-Index: AQHUUGQR4u3gcyb+qEKjZgEHTm4e/w== Date: Wed, 19 Sep 2018 21:59:42 +0000 Message-ID: <1537394318-17682-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: BYAPR04CA0003.namprd04.prod.outlook.com (2603:10b6:a03:40::16) 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; BYAPR07MB5703; 6:JYMLDFAeKLCH0srtuubkXSKlYH0866koY9Hqgz5HXHzpMcskz/EZRiu+j54zEbwYLCgg931c7fngOaVM5d6+oP5b24CpiLgeXY+4Ej3rON8wWEtdTo3mvPr/nlsorLPe/z2Rz6IWwXs2KQCJ8nQZajdSMtZaqI9bG44LGgj5IIsHe6gHOfXV9p6nzccRukkX+AenGbNnNLl090Rzz7rh8Id1ijTcdOwlfVTMhtNaGXt7AiW1D0nY5+BN7me58HwCiX8toJtQZvZ7deFel+VB/RclufiasOgF/sqSDD79gDXk4uTCnlfzD1PPkCbE22GMdl/l639uzMZNhtx+wEgMGF9FpwplCJz52iIfGctdapU1gGvpZaJymh6e3UYO7WPeqV4vU0m7KxVLdhszU/uK4QqsZ6mVcOH3KCvW4Z1UHzSZw9libSY8qLWT4gXGkiXdYrRpfVoaVGnHJYeKVlBYJg==; 5:NNy4gBpdMMd/IEYxYiqJhKmQIBCMI1a9AG+TfKsf4BsY3nCoI5bqFaggmytMB5uax1+vH2AV5xdr/nHq010qAYHrYfCs+beVtKOuk9OptKhniGrHsRD5cJRdYkwQBPn1txvVziZGb4+MKBm4JqH4bhcQCqD+J3GuOUGMB6dAoTQ=; 7:oJzKhmpIQLIbx6LwGvjTgr/8R241Hq2zFao7V11eylcdHxqFhJV9+2hI/7gAvV3f8BQEV8xvxfieNTWoM8xB4+qf6CGR/I536xUjKka4UL6+uX0+cnJeUxdqJ0zUshsI/puy+J2r+UexZcbiURC12em+jAqFqqim3NJOS3/kGkVziXKd41nWMxXkbEHitZuPzD8FOPnP7LBihNnjtwWoumzc2TGXHnQ7gGTv2pwW5ii5FYF5F015Aj1OoX7XmyF9 x-ms-office365-filtering-correlation-id: 601a12c3-572c-443e-29df-08d61e7b33fa x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:BYAPR07MB5703; x-ms-traffictypediagnostic: BYAPR07MB5703: 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)(5005006)(8121501046)(823301075)(3231355)(944501410)(52105095)(93006095)(93001095)(3002001)(10201501046)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(201708071742011)(7699051); SRVR:BYAPR07MB5703; BCL:0; PCL:0; RULEID:; SRVR:BYAPR07MB5703; x-forefront-prvs: 0800C0C167 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(1496009)(346002)(136003)(396003)(376002)(39850400004)(366004)(189003)(199004)(446003)(5660300001)(76176011)(2351001)(6486002)(7736002)(6116002)(6436002)(3846002)(99286004)(54906003)(6916009)(11346002)(476003)(486006)(105586002)(2616005)(478600001)(5640700003)(106356001)(305945005)(6512007)(97736004)(66066001)(52116002)(53936002)(2906002)(256004)(316002)(4326008)(2501003)(102836004)(2900100001)(81156014)(386003)(86362001)(81166006)(5250100002)(26005)(36756003)(8676002)(72206003)(68736007)(8936002)(25786009)(1730700003)(14454004)(186003)(6506007); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR07MB5703; H:BYAPR07MB5365.namprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: bRKKo6IiyC0H+YyytYTNh2zLodf6hej7843Gn3d9o4esr4CS/Ecxbf/Fdlzyud8SsiIa0loGUxeT8tNukb3qEtykU26etwz+1E9QPYu7bDb0JtRjEiDIpLpA+vQjF3LVlW/6RyjoQtkpZvvbgNJx1lfHFFOnUWSmZKjYRZADVLnN0euNezLlFSkkhPpDgOYlrh+VaEciOB2cs0pd/AkJOqzBOp8A604aOhZQwfOSAfhwyHMgGXyiytTvT9a/8L3jyiZuYfXxtho1N06r2N79JFM+dTNOCxJBlDThwLGl2jaGWqib7qTlJ2UbJ9RF1NnpESqp2TvOlVenIV9t1sgvrJlkoj6fY99FFvlBw5LGAN0= 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: 601a12c3-572c-443e-29df-08d61e7b33fa X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Sep 2018 21:59:42.6110 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR07MB5703 Subject: [dpdk-dev] [PATCH 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: Wed, 19 Sep 2018 21:59:45 -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