Commit 8a9f82f
net: ethernet: ti: am65-cpsw: fix RX & TX statistics for XDP_TX case
For successful XDP_TX and XDP_REDIRECT cases, the packet was received
successfully so update RX statistics. Use original received
packet length for that.
TX packets statistics are incremented on TX completion so don't
update it while TX queueing.
If xdp_convert_buff_to_frame() fails, increment tx_dropped.
Signed-off-by: Roger Quadros <[email protected]>
Fixes: 8acacc4 ("net: ethernet: ti: am65-cpsw: Add minimal XDP support")
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>1 parent 5db8432 commit 8a9f82f
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1170 | 1170 | | |
1171 | 1171 | | |
1172 | 1172 | | |
| 1173 | + | |
1173 | 1174 | | |
1174 | 1175 | | |
1175 | 1176 | | |
| 1177 | + | |
1176 | 1178 | | |
1177 | 1179 | | |
1178 | 1180 | | |
| |||
1190 | 1192 | | |
1191 | 1193 | | |
1192 | 1194 | | |
1193 | | - | |
| 1195 | + | |
| 1196 | + | |
1194 | 1197 | | |
| 1198 | + | |
1195 | 1199 | | |
1196 | 1200 | | |
1197 | 1201 | | |
| |||
1200 | 1204 | | |
1201 | 1205 | | |
1202 | 1206 | | |
1203 | | - | |
| 1207 | + | |
1204 | 1208 | | |
1205 | 1209 | | |
1206 | 1210 | | |
1207 | 1211 | | |
1208 | 1212 | | |
1209 | 1213 | | |
1210 | | - | |
| 1214 | + | |
1211 | 1215 | | |
1212 | 1216 | | |
1213 | 1217 | | |
| |||
0 commit comments