Re: [PATCH] net/xdp: use shift instead of 64 bit division

2020-06-04 Thread David Miller
From: Pavel Machek Date: Thu, 4 Jun 2020 23:42:59 +0200 > 64bit division is kind of expensive, and shift should do the job here. > > Signed-off-by: Pavel Machek (CIP) I'll take this, applied, thanks.

[PATCH] net/xdp: use shift instead of 64 bit division

2020-06-04 Thread Pavel Machek
64bit division is kind of expensive, and shift should do the job here. Signed-off-by: Pavel Machek (CIP) --- Now with patch. Sorry about that. diff --git a/net/xdp/xdp_umem.c b/net/xdp/xdp_umem.c index 3889bd9aec46..d6c91a43a1ee 100644 --- a/net/xdp/xdp_umem.c +++ b/net/xdp/xdp_umem.c @@ -372,

[PATCH] net/xdp: use shift instead of 64 bit division

2020-06-04 Thread Pavel Machek
64bit division is kind of expensive, and shift should do the job here. Signed-off-by: Pavel Machek (CIP) -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html signature.asc Description: Digital signature