From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-eopbgr790045.outbound.protection.outlook.com [40.107.79.45]) by dpdk.org (Postfix) with ESMTP id D3B4211A4; Tue, 12 Mar 2019 16:24:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=AQUANTIA1COM.onmicrosoft.com; s=selector1-aquantia-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wABkk6GVQI7y28vBO2rYuZ8oKyYJ+NjFDgT7aPKXxmg=; b=goIRs9M9RovtMdi4AeAeYzuul4FCI3EgsG3t0VxNcPTLOO1t1mBAKQsJj9FKu8+7FDjCQH+U9P6vTpVjFxyYqQ5Q5uV7FdB+vzkA9dhjhc/3ssFvoR+AMb26ycW+4znN7QJObh5IVs/D4HskelAMxTtjbFzC6lJPK12krNx1eLE= Received: from DM6PR11MB3625.namprd11.prod.outlook.com (20.178.230.149) by DM6PR11MB2747.namprd11.prod.outlook.com (20.176.100.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1686.18; Tue, 12 Mar 2019 15:24:52 +0000 Received: from DM6PR11MB3625.namprd11.prod.outlook.com ([fe80::d145:a1f4:ed34:e31b]) by DM6PR11MB3625.namprd11.prod.outlook.com ([fe80::d145:a1f4:ed34:e31b%3]) with mapi id 15.20.1686.021; Tue, 12 Mar 2019 15:24:52 +0000 From: Igor Russkikh To: "dev@dpdk.org" CC: Pavel Belous , Igor Russkikh , "stable@dpdk.org" Thread-Topic: [PATCH v3 01/10] net/atlantic: fix negative error codes Thread-Index: AQHU2Oe85lBIfj0Ha0C7ouJhr7ZIZw== Date: Tue, 12 Mar 2019 15:24:52 +0000 Message-ID: <8b5751022a766644ba6abff9be929ffdd73e01cb.1552402263.git.igor.russkikh@aquantia.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HE1PR0901CA0050.eurprd09.prod.outlook.com (2603:10a6:3:45::18) To DM6PR11MB3625.namprd11.prod.outlook.com (2603:10b6:5:13a::21) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Igor.Russkikh@aquantia.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-originating-ip: [95.79.108.179] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 58ff60de-0e0b-4e93-e672-08d6a6fedf28 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(2017052603328)(7153060)(7193020); SRVR:DM6PR11MB2747; x-ms-traffictypediagnostic: DM6PR11MB2747: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; DM6PR11MB2747; 23:DNAu95jE7Zk0mlYdv9PA/QwoILV2mR08+MPgQQj?= =?iso-8859-1?Q?1My8X6NmlJ3aGlRI4pLr2Wn5FN/K0LMfjXLPTKkzGUE5sFJo4Q8a9BTpoG?= =?iso-8859-1?Q?Xd63zSvUhv/7ZZkGvv0NynwjynYPY5U2jAHetFEYTZFbMCyyUX91qNBppn?= =?iso-8859-1?Q?76ZXC5XwPWWLPXHCwmOXZLP2CAdVX+zeqmvjlvpHtY0IN9wKEmG94sMl7A?= =?iso-8859-1?Q?A/wVzSX1QhEHup/jOsbm4HjTCwXQc4BmQU4r7N2rFGZWEMnL1AvpY/p1u9?= =?iso-8859-1?Q?leeUZqUZ8p8PuCHkDNjKDVM7FzROMyLYC5iJIQ7Em2yCdTbMAfwu+98wNg?= =?iso-8859-1?Q?W3Ydlz+Mysr+OtGvBE3lOb7EaxXatnMp5TWyVd7TGR6jU5EHRJSe8msRou?= =?iso-8859-1?Q?Eh0ypTR7DfCCeLzv8igxfSvHjvZs5MsI3la3WMUDSI/PuV6QFeaS4P4ww2?= =?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8HJsFBYfh8/qWFw9B5Nap+MSCba+29?= =?iso-8859-1?Q?g8gC5ojibpyc4fc0xrHBwl40PgBhJPSosNjhELPbC4m8crv19MjUYB2MRV?= =?iso-8859-1?Q?/fISbHA5HfB8Qg=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 09749A275C x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(346002)(39850400004)(136003)(366004)(376002)(199004)(189003)(53936002)(2501003)(106356001)(86362001)(81166006)(5660300002)(99286004)(81156014)(6116002)(44832011)(2351001)(105586002)(4326008)(66066001)(2616005)(71200400001)(4744005)(486006)(72206003)(478600001)(446003)(476003)(186003)(118296001)(14454004)(26005)(54906003)(71190400001)(11346002)(386003)(6506007)(305945005)(102836004)(25786009)(7736002)(50226002)(3846002)(256004)(316002)(36756003)(450100002)(6916009)(6486002)(52116002)(1730700003)(8676002)(76176011)(6512007)(97736004)(8936002)(68736007)(6436002)(2906002)(5640700003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM6PR11MB2747; H:DM6PR11MB3625.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: aquantia.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 7eb6CvQ4pxgJsUcMaAONwtPzOBCvDTR3VSKlh+jWy8TUqZ3478g/EUgwG7b0UWCN7v+7p/KC3p+SlCSE7kGXVimVU+IEu/edYR1DhjfIVlSocdhu5rjVB/DiJFsv9/ZwZT0bFy6cOeZueIpQWKorIB84RNiPzzOp6MPllHRshBRqZb5vXcqW5WTQkDzLfcifFAr/jqWq0mvtYio+wT3e1+erDiCzkqIAB0HervkphKZ7FXOM2P5/N/zAlJAFdGfvxS0zGoJ54mwvfC42HardA8KJPGN9fU2iXZfX6VK6pBhavipNfnXXodrmqlirOgflUyK6sGFVqAKAc7QVE/v6s1+iVD5mC0jNJxm5XXP8B5RkkLUkXKH/aepqjFTl0VbPto16zOuR5qNMte0ywWe/IlB2+zBbFF3MCwJtyaQWwKU= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: aquantia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 58ff60de-0e0b-4e93-e672-08d6a6fedf28 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Mar 2019 15:24:52.0541 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 83e2e134-991c-4ede-8ced-34d47e38e6b1 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB2747 Subject: [dpdk-dev] [PATCH v3 01/10] net/atlantic: fix negative error codes 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: Tue, 12 Mar 2019 15:24:53 -0000 These are just convention breakage on rte_errno, no real harm from that. Cc: stable@dpdk.org Signed-off-by: Igor Russkikh Fixes: 2b1472d7150c ("net/atlantic: implement Tx path") --- drivers/net/atlantic/atl_rxtx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/atlantic/atl_rxtx.c b/drivers/net/atlantic/atl_rxt= x.c index 40c913795c79..aea58c0d5b83 100644 --- a/drivers/net/atlantic/atl_rxtx.c +++ b/drivers/net/atlantic/atl_rxtx.c @@ -812,12 +812,12 @@ atl_prep_pkts(__rte_unused void *tx_queue, struct rte= _mbuf **tx_pkts, ol_flags =3D m->ol_flags; =20 if (m->nb_segs > AQ_HW_MAX_SEGS_SIZE) { - rte_errno =3D -EINVAL; + rte_errno =3D EINVAL; return i; } =20 if (ol_flags & ATL_TX_OFFLOAD_NOTSUP_MASK) { - rte_errno =3D -ENOTSUP; + rte_errno =3D ENOTSUP; return i; } =20 --=20 2.17.1