Lorenzo Bianconi 44efc78d0e net: mvneta: fix XDP support if sw bm is used as fallback
In order to fix XDP support if sw buffer management is used as fallback
for hw bm devices, define MVNETA_SKB_HEADROOM as maximum between
XDP_PACKET_HEADROOM and NET_SKB_PAD and let the hw aligns the IP header
to 4-byte boundary.
Fix rx_offset_correction initialization if mvneta_bm_port_init fails in
mvneta_resume routine

Fixes: 0db51da7a8e9 ("net: mvneta: add basic XDP support")
Tested-by: Sven Auhagen <sven.auhagen@voleatech.de>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-01-29 13:57:59 +01:00
..
2020-01-27 13:03:00 -08:00
2020-01-27 13:03:00 -08:00
2020-01-27 13:03:00 -08:00
2020-01-27 13:03:00 -08:00
2020-01-27 13:03:00 -08:00
2020-01-23 00:35:50 +01:00
2019-12-01 18:43:25 -08:00
2020-01-27 13:03:00 -08:00
2020-01-27 13:03:00 -08:00
2020-01-27 17:22:21 -08:00
2020-01-27 13:03:00 -08:00
2020-01-27 13:03:00 -08:00
2020-01-27 13:03:00 -08:00
2020-01-27 13:03:00 -08:00
2020-01-27 13:03:00 -08:00
2019-11-30 14:35:43 -08:00
2019-12-01 18:42:02 -08:00
2020-01-27 12:55:48 -08:00
2019-12-06 08:28:51 -08:00
2019-12-03 13:58:22 -08:00
2019-12-03 14:37:12 -08:00
2020-01-27 13:03:00 -08:00
2020-01-27 13:03:00 -08:00
2019-12-01 18:43:25 -08:00
2020-01-27 12:38:25 -08:00
2019-12-05 11:43:31 -08:00
2020-01-27 13:03:00 -08:00
2019-11-25 19:40:40 -08:00
2020-01-27 13:03:00 -08:00
2020-01-27 13:03:00 -08:00
2020-01-27 13:03:00 -08:00
2019-12-05 11:28:14 -08:00
2020-01-27 13:03:00 -08:00
2019-12-01 18:39:24 -08:00
2020-01-27 13:03:00 -08:00
2020-01-26 15:20:32 +01:00
2020-01-27 13:03:00 -08:00
2020-01-27 13:03:00 -08:00
2020-01-27 13:03:00 -08:00
2020-01-26 10:39:09 -08:00
2020-01-27 13:03:00 -08:00
2020-01-27 13:03:00 -08:00
2019-12-25 10:41:37 +01:00