Commit 9d71bc8
Alexei Starovoitov
Merge branch 'net-bpf_xdp_adjust_tail-and-intel-mbuf-fixes'
Maciej Fijalkowski says:
====================
net: bpf_xdp_adjust_tail() and Intel mbuf fixes
Hey,
after a break followed by dealing with sickness, here is a v6 that makes
bpf_xdp_adjust_tail() actually usable for ZC drivers that support XDP
multi-buffer. Since v4 I tried also using bpf_xdp_adjust_tail() with
positive offset which exposed yet another issues, which can be observed
by increased commit count when compared to v3.
John, in the end I think we should remove handling
MEM_TYPE_XSK_BUFF_POOL from __xdp_return(), but it is out of the scope
for fixes set, IMHO.
Thanks,
Maciej
v6:
- add acks [Magnus]
- fix spelling mistakes [Magnus]
- avoid touching xdp_buff in xp_alloc_{reused,new_from_fq}() [Magnus]
- s/shrink_data/bpf_xdp_shrink_data [Jakub]
- remove __shrink_data() [Jakub]
- check retvals from __xdp_rxq_info_reg() [Magnus]
v5:
- pick correct version of patch 5 [Simon]
- elaborate a bit more on what patch 2 fixes
v4:
- do not clear frags flag when deleting tail; xsk_buff_pool now does
that
- skip some NULL tests for xsk_buff_get_tail [Martin, John]
- address problems around registering xdp_rxq_info
- fix bpf_xdp_frags_increase_tail() for ZC mbuf
v3:
- add acks
- s/xsk_buff_tail_del/xsk_buff_del_tail
- address i40e as well (thanks Tirthendu)
v2:
- fix !CONFIG_XDP_SOCKETS builds
- add reviewed-by tag to patch 3
====================
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>File tree
12 files changed
+187
-89
lines changed- drivers/net/ethernet/intel
- i40e
- ice
- include/net
- net
- core
- xdp
12 files changed
+187
-89
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3588 | 3588 | | |
3589 | 3589 | | |
3590 | 3590 | | |
3591 | | - | |
3592 | 3591 | | |
3593 | 3592 | | |
3594 | 3593 | | |
3595 | 3594 | | |
3596 | 3595 | | |
3597 | 3596 | | |
3598 | | - | |
3599 | | - | |
| 3597 | + | |
| 3598 | + | |
| 3599 | + | |
| 3600 | + | |
| 3601 | + | |
| 3602 | + | |
| 3603 | + | |
| 3604 | + | |
| 3605 | + | |
| 3606 | + | |
| 3607 | + | |
| 3608 | + | |
| 3609 | + | |
| 3610 | + | |
3600 | 3611 | | |
3601 | 3612 | | |
3602 | 3613 | | |
3603 | | - | |
3604 | | - | |
3605 | | - | |
| 3614 | + | |
| 3615 | + | |
| 3616 | + | |
| 3617 | + | |
| 3618 | + | |
| 3619 | + | |
| 3620 | + | |
| 3621 | + | |
| 3622 | + | |
3606 | 3623 | | |
3607 | 3624 | | |
3608 | | - | |
3609 | | - | |
| 3625 | + | |
| 3626 | + | |
3610 | 3627 | | |
3611 | 3628 | | |
3612 | 3629 | | |
3613 | 3630 | | |
3614 | 3631 | | |
3615 | | - | |
3616 | | - | |
3617 | | - | |
3618 | | - | |
3619 | | - | |
3620 | | - | |
3621 | | - | |
3622 | | - | |
| 3632 | + | |
| 3633 | + | |
| 3634 | + | |
| 3635 | + | |
| 3636 | + | |
3623 | 3637 | | |
3624 | 3638 | | |
| 3639 | + | |
3625 | 3640 | | |
3626 | 3641 | | |
3627 | 3642 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1548 | 1548 | | |
1549 | 1549 | | |
1550 | 1550 | | |
1551 | | - | |
1552 | 1551 | | |
1553 | 1552 | | |
1554 | 1553 | | |
| |||
1569 | 1568 | | |
1570 | 1569 | | |
1571 | 1570 | | |
1572 | | - | |
1573 | | - | |
1574 | | - | |
1575 | | - | |
1576 | | - | |
1577 | | - | |
1578 | | - | |
1579 | | - | |
1580 | 1571 | | |
1581 | 1572 | | |
1582 | 1573 | | |
| |||
2087 | 2078 | | |
2088 | 2079 | | |
2089 | 2080 | | |
2090 | | - | |
| 2081 | + | |
| 2082 | + | |
2091 | 2083 | | |
2092 | 2084 | | |
2093 | 2085 | | |
| |||
2100 | 2092 | | |
2101 | 2093 | | |
2102 | 2094 | | |
2103 | | - | |
2104 | | - | |
2105 | | - | |
| 2095 | + | |
2106 | 2096 | | |
| 2097 | + | |
| 2098 | + | |
2107 | 2099 | | |
2108 | 2100 | | |
2109 | 2101 | | |
| |||
2117 | 2109 | | |
2118 | 2110 | | |
2119 | 2111 | | |
2120 | | - | |
2121 | 2112 | | |
2122 | 2113 | | |
2123 | 2114 | | |
2124 | 2115 | | |
2125 | 2116 | | |
2126 | 2117 | | |
2127 | | - | |
2128 | | - | |
| 2118 | + | |
2129 | 2119 | | |
2130 | 2120 | | |
2131 | 2121 | | |
| 2122 | + | |
2132 | 2123 | | |
2133 | 2124 | | |
| 2125 | + | |
2134 | 2126 | | |
2135 | 2127 | | |
2136 | 2128 | | |
| |||
2168 | 2160 | | |
2169 | 2161 | | |
2170 | 2162 | | |
| 2163 | + | |
| 2164 | + | |
| 2165 | + | |
| 2166 | + | |
2171 | 2167 | | |
2172 | 2168 | | |
2173 | 2169 | | |
| |||
2187 | 2183 | | |
2188 | 2184 | | |
2189 | 2185 | | |
2190 | | - | |
| 2186 | + | |
2191 | 2187 | | |
2192 | | - | |
2193 | 2188 | | |
2194 | 2189 | | |
2195 | 2190 | | |
| |||
2212 | 2207 | | |
2213 | 2208 | | |
2214 | 2209 | | |
2215 | | - | |
2216 | 2210 | | |
2217 | 2211 | | |
2218 | 2212 | | |
2219 | 2213 | | |
2220 | 2214 | | |
2221 | | - | |
2222 | | - | |
| 2215 | + | |
2223 | 2216 | | |
2224 | 2217 | | |
| 2218 | + | |
2225 | 2219 | | |
| 2220 | + | |
2226 | 2221 | | |
2227 | 2222 | | |
2228 | 2223 | | |
| |||
2231 | 2226 | | |
2232 | 2227 | | |
2233 | 2228 | | |
| 2229 | + | |
| 2230 | + | |
| 2231 | + | |
| 2232 | + | |
| 2233 | + | |
2234 | 2234 | | |
2235 | 2235 | | |
2236 | 2236 | | |
| |||
2243 | 2243 | | |
2244 | 2244 | | |
2245 | 2245 | | |
2246 | | - | |
2247 | | - | |
2248 | | - | |
2249 | 2246 | | |
2250 | 2247 | | |
2251 | 2248 | | |
| |||
2589 | 2586 | | |
2590 | 2587 | | |
2591 | 2588 | | |
2592 | | - | |
| 2589 | + | |
2593 | 2590 | | |
2594 | | - | |
| 2591 | + | |
2595 | 2592 | | |
2596 | 2593 | | |
2597 | 2594 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
417 | | - | |
| 417 | + | |
| 418 | + | |
418 | 419 | | |
419 | 420 | | |
420 | 421 | | |
| |||
498 | 499 | | |
499 | 500 | | |
500 | 501 | | |
501 | | - | |
502 | 502 | | |
503 | 503 | | |
504 | 504 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
547 | 547 | | |
548 | 548 | | |
549 | 549 | | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | | - | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
556 | 558 | | |
557 | 559 | | |
558 | 560 | | |
559 | | - | |
| 561 | + | |
560 | 562 | | |
561 | 563 | | |
562 | 564 | | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
563 | 571 | | |
564 | 572 | | |
565 | 573 | | |
| |||
571 | 579 | | |
572 | 580 | | |
573 | 581 | | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | | - | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
581 | 590 | | |
582 | 591 | | |
583 | 592 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
513 | 513 | | |
514 | 514 | | |
515 | 515 | | |
516 | | - | |
517 | | - | |
518 | | - | |
519 | | - | |
520 | | - | |
521 | 516 | | |
522 | 517 | | |
523 | 518 | | |
| |||
603 | 598 | | |
604 | 599 | | |
605 | 600 | | |
606 | | - | |
607 | | - | |
608 | | - | |
| 601 | + | |
609 | 602 | | |
610 | 603 | | |
611 | 604 | | |
| |||
893 | 886 | | |
894 | 887 | | |
895 | 888 | | |
896 | | - | |
897 | | - | |
| 889 | + | |
898 | 890 | | |
899 | 891 | | |
900 | 892 | | |
901 | 893 | | |
902 | 894 | | |
903 | 895 | | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
904 | 900 | | |
905 | 901 | | |
906 | 902 | | |
| |||
1251 | 1247 | | |
1252 | 1248 | | |
1253 | 1249 | | |
| 1250 | + | |
1254 | 1251 | | |
1255 | 1252 | | |
1256 | 1253 | | |
| |||
1266 | 1263 | | |
1267 | 1264 | | |
1268 | 1265 | | |
| 1266 | + | |
1269 | 1267 | | |
1270 | 1268 | | |
1271 | 1269 | | |
1272 | 1270 | | |
| 1271 | + | |
1273 | 1272 | | |
1274 | 1273 | | |
1275 | 1274 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
| 361 | + | |
361 | 362 | | |
362 | 363 | | |
363 | 364 | | |
| |||
0 commit comments