]> git.baikalelectronics.ru Git - kernel.git/commit
mvneta: MVNETA_SKB_HEADROOM set last 3 bits to zero
authorSven Auhagen <sven.auhagen@voleatech.de>
Sat, 23 May 2020 10:14:08 +0000 (12:14 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 May 2020 00:50:01 +0000 (17:50 -0700)
commitef009e6c355940de8f33aadd2ff39d1a72e3683f
tree09e551b1bee227ef9525122ceafedd9d3d060085
parent29a45d7c7f34e353dbd51c1fbc41d024136fa71f
mvneta: MVNETA_SKB_HEADROOM set last 3 bits to zero

For XDP the MVNETA_SKB_HEADROOM is used as an offset for
the received data.
The MVNETA manual states that the last 3 bits assumed to be 0.

This is currently the case but lets make it explicit in the definition
to prevent future problems.

Signed-off-by: Sven Auhagen <sven.auhagen@voleatech.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvneta.c