Repository navigation
Commit b80b8d7
committed
Merge branch 'mlx5e-xdp'
Tariq Toukan says:
====================
mlx5e XDP support
This series adds XDP support in mlx5e driver.
This includes the use cases: XDP_DROP, XDP_PASS, and XDP_TX.
Single stream performance tests show 16.5 Mpps for XDP_DROP,
and 12.4 Mpps for XDP_TX, with nice scalability for multiple streams/rings.
This rate of XDP_DROP is lower than the 32 Mpps we got in previous
implementation, when Striding RQ was used.
We moved to non-Striding RQ, as some XDP_TX requirements (like headroom,
packet-per-page) cannot be satisfied with the current Striding RQ HW,
and we decided to fully support both DROP/TX.
Few directions are considered in order to enable the faster rate for XDP_DROP,
e.g a possibility for users to enable Striding RQ so they choose optimized
XDP_DROP on the price of partial XDP_TX functionality, or some HW changes.
Series generated against net-next commit:
cf714ac 'ipvlan: Fix dependency issue'
Thanks,
Tariq
V2:
* patch 8:
- when XDP_TX fails, call mlx5e_page_release and drop the packet.
- update xdp_tx counter within mlx5e_xmit_xdp_frame.
(mlx5e_xmit_xdp_frame return value becomes obsolete, change it to void)
- drop the packet for unknown XDP return code.
* patch 9:
- use a boolean for xdp_doorbell in SQ struct, instead of dragging it
throughout the functions calls.
- handle doorbell and counters within mlx5e_xmit_xdp_frame.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>6 files changed
Lines changed: 757 additions & 263 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
| |||
99 | 101 | | |
100 | 102 | | |
101 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
102 | 116 | | |
103 | 117 | | |
104 | 118 | | |
| |||
302 | 316 | | |
303 | 317 | | |
304 | 318 | | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
309 | 333 | | |
310 | 334 | | |
311 | 335 | | |
| |||
321 | 345 | | |
322 | 346 | | |
323 | 347 | | |
324 | | - | |
325 | 348 | | |
326 | 349 | | |
| 350 | + | |
327 | 351 | | |
328 | 352 | | |
329 | 353 | | |
| |||
370 | 394 | | |
371 | 395 | | |
372 | 396 | | |
373 | | - | |
| 397 | + | |
374 | 398 | | |
375 | 399 | | |
376 | 400 | | |
377 | 401 | | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
378 | 408 | | |
379 | 409 | | |
380 | 410 | | |
| |||
392 | 422 | | |
393 | 423 | | |
394 | 424 | | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
399 | 439 | | |
400 | 440 | | |
401 | 441 | | |
| |||
417 | 457 | | |
418 | 458 | | |
419 | 459 | | |
420 | | - | |
421 | 460 | | |
| 461 | + | |
422 | 462 | | |
423 | 463 | | |
424 | 464 | | |
| |||
434 | 474 | | |
435 | 475 | | |
436 | 476 | | |
| 477 | + | |
437 | 478 | | |
438 | 479 | | |
| 480 | + | |
439 | 481 | | |
440 | 482 | | |
441 | 483 | | |
| |||
617 | 659 | | |
618 | 660 | | |
619 | 661 | | |
| 662 | + | |
620 | 663 | | |
621 | 664 | | |
622 | 665 | | |
| |||
663 | 706 | | |
664 | 707 | | |
665 | 708 | | |
666 | | - | |
| 709 | + | |
667 | 710 | | |
668 | 711 | | |
669 | 712 | | |
| |||
764 | 807 | | |
765 | 808 | | |
766 | 809 | | |
767 | | - | |
| 810 | + | |
768 | 811 | | |
769 | 812 | | |
770 | 813 | | |
| |||
0 commit comments