From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C9E53C433DF for ; Thu, 4 Jun 2020 21:33:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AE4AC206C3 for ; Thu, 4 Jun 2020 21:33:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727979AbgFDVdG (ORCPT ); Thu, 4 Jun 2020 17:33:06 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:60944 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725943AbgFDVdF (ORCPT ); Thu, 4 Jun 2020 17:33:05 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 486EA1C0C0B; Thu, 4 Jun 2020 23:33:04 +0200 (CEST) Date: Thu, 4 Jun 2020 23:33:02 +0200 From: Pavel Machek To: bjorn.topel@intel.com, magnus.karlsson@intel.com, jonathan.lemon@gmail.com, davem@davemloft.net, kuba@kernel.org, ast@kernel.org, daniel@iogearbox.net, hawk@kernel.org, john.fastabend@gmail.com, netdev@vger.kernel.org, trivial@kernel.org Subject: [PATCH] net/xdp: use shift instead of 64 bit division Message-ID: <20200604213302.GA8569@amd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SLDf9lqlvOQaIe6s" Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org --SLDf9lqlvOQaIe6s Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 64bit division is kind of expensive, and shift should do the job here. Signed-off-by: Pavel Machek (CIP) --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --SLDf9lqlvOQaIe6s Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl7ZaI4ACgkQMOfwapXb+vLavQCgqQbEaQpyedhluujd0zWVBTjk 5XAAoIoV7O/g/f44CbUUwgjMQSTUhS0/ =TaRr -----END PGP SIGNATURE----- --SLDf9lqlvOQaIe6s--