]> git.baikalelectronics.ru Git - kernel.git/commit
net/xdp: use shift instead of 64 bit division
authorPavel Machek <pavel@ucw.cz>
Thu, 4 Jun 2020 21:42:59 +0000 (23:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Jun 2020 23:02:58 +0000 (16:02 -0700)
commitf26d13fffc6403dc5f771ce0754e630c3ac57cd7
tree04858f775f70dc3efcaa0a196127defad701e260
parenta79dca4f91b99fad14b278b7c6b70bea390024e0
net/xdp: use shift instead of 64 bit division

64bit division is kind of expensive, and shift should do the job here.

Signed-off-by: Pavel Machek (CIP) <pavel@denx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/xdp/xdp_umem.c