Repository navigation
Commit 44efc78
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: 0db51da ("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>1 parent 793da4b commit 44efc78
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
327 | | - | |
328 | | - | |
| 327 | + | |
329 | 328 | | |
330 | 329 | | |
331 | 330 | | |
| |||
1167 | 1166 | | |
1168 | 1167 | | |
1169 | 1168 | | |
| 1169 | + | |
1170 | 1170 | | |
1171 | 1171 | | |
1172 | 1172 | | |
| |||
4948 | 4948 | | |
4949 | 4949 | | |
4950 | 4950 | | |
4951 | | - | |
4952 | 4951 | | |
4953 | 4952 | | |
4954 | 4953 | | |
| |||
4973 | 4972 | | |
4974 | 4973 | | |
4975 | 4974 | | |
| 4975 | + | |
| 4976 | + | |
| 4977 | + | |
| 4978 | + | |
4976 | 4979 | | |
4977 | 4980 | | |
4978 | 4981 | | |
| |||
5130 | 5133 | | |
5131 | 5134 | | |
5132 | 5135 | | |
| 5136 | + | |
5133 | 5137 | | |
5134 | 5138 | | |
5135 | 5139 | | |
| |||
0 commit comments