]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvneta: rely on open-coding updating stats for non-xdp and tx path
authorLorenzo Bianconi <lorenzo@kernel.org>
Sun, 16 Feb 2020 21:07:30 +0000 (22:07 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Feb 2020 04:04:41 +0000 (20:04 -0800)
commit797f3a89c44fa6b67c5615c9d30b6c9629d30eaf
treea434674e48a4a727796408510345ec99c759e31b
parentf1e8c362846e2f11f8e14628b4ba209dddb45c7e
net: mvneta: rely on open-coding updating stats for non-xdp and tx path

In oreder to avoid unnecessary instructions rely on open-coding updating
per-cpu stats in mvneta_tx/mvneta_xdp_submit_frame and mvneta_rx_hwbm
routines. This patch will be used to add xdp support to ethtool for the
mvneta driver

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvneta.c