ionic: use fewer inits on the buf_info struct
authorShannon Nelson <snelson@pensando.io>
Tue, 27 Jul 2021 17:43:29 +0000 (10:43 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Jul 2021 19:15:21 +0000 (20:15 +0100)
commite75ccac1d0644c9d7ad531cb9a81c499930c06da
tree1a606d140d039fc1ff81e0962a3b26a0a28c014f
parente7f52aa44380ea657f0977ded63eee091f8fa123
ionic: use fewer inits on the buf_info struct

Based on Alex's review notes on [1], we don't need to write
to the buf_info elements as often, and can tighten up how they
are used.  Also, use prefetchw() to warm up the page struct
for a later get_page().

[1] https://lore.kernel.org/netdev/CAKgT0UfyjoAN7LTnq0NMZfXRv4v7iTCPyAb9pVr3qWMhop_BVw@mail.gmail.com/

Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_txrx.c