Commit 366e462
net/mlx5e: Make IPsec offload work together with eswitch and TC
The eswitch mode is not allowed to change if there are any IPsec rules.
Besides, by using mlx5_esw_try_lock() to get eswitch mode lock, IPsec
rules are not allowed to be offloaded if there are any TC rules.
Signed-off-by: Jianbo Liu <jianbol@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Link: https://lore.kernel.org/r/e442b512b21a931fbdfb87d57ae428c37badd58a.1690802064.git.leon@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent 1632649 commit 366e462
File tree
3 files changed
+128
-15
lines changed- drivers/net/ethernet/mellanox/mlx5/core
- en_accel
3 files changed
+128
-15
lines changedLines changed: 44 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
258 | | - | |
259 | 257 | | |
260 | 258 | | |
261 | 259 | | |
| |||
359 | 357 | | |
360 | 358 | | |
361 | 359 | | |
362 | | - | |
363 | | - | |
364 | 360 | | |
365 | 361 | | |
366 | 362 | | |
| |||
415 | 411 | | |
416 | 412 | | |
417 | 413 | | |
418 | | - | |
419 | | - | |
420 | 414 | | |
421 | 415 | | |
422 | 416 | | |
| |||
434 | 428 | | |
435 | 429 | | |
436 | 430 | | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
437 | 438 | | |
| 439 | + | |
438 | 440 | | |
439 | | - | |
| 441 | + | |
440 | 442 | | |
441 | 443 | | |
442 | 444 | | |
443 | 445 | | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
444 | 451 | | |
445 | 452 | | |
446 | 453 | | |
| |||
449 | 456 | | |
450 | 457 | | |
451 | 458 | | |
| 459 | + | |
452 | 460 | | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
453 | 465 | | |
454 | 466 | | |
455 | 467 | | |
| |||
569 | 581 | | |
570 | 582 | | |
571 | 583 | | |
572 | | - | |
573 | | - | |
574 | 584 | | |
575 | 585 | | |
576 | 586 | | |
| |||
611 | 621 | | |
612 | 622 | | |
613 | 623 | | |
614 | | - | |
615 | | - | |
616 | 624 | | |
617 | 625 | | |
618 | 626 | | |
| |||
679 | 687 | | |
680 | 688 | | |
681 | 689 | | |
682 | | - | |
683 | | - | |
684 | 690 | | |
685 | 691 | | |
686 | 692 | | |
| |||
714 | 720 | | |
715 | 721 | | |
716 | 722 | | |
717 | | - | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
718 | 727 | | |
719 | | - | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
720 | 735 | | |
721 | 736 | | |
722 | 737 | | |
723 | 738 | | |
| 739 | + | |
| 740 | + | |
724 | 741 | | |
725 | 742 | | |
726 | 743 | | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
727 | 749 | | |
728 | 750 | | |
729 | 751 | | |
730 | 752 | | |
731 | 753 | | |
732 | 754 | | |
733 | 755 | | |
| 756 | + | |
| 757 | + | |
734 | 758 | | |
735 | 759 | | |
736 | 760 | | |
737 | 761 | | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
738 | 767 | | |
739 | 768 | | |
740 | 769 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| 273 | + | |
273 | 274 | | |
274 | 275 | | |
275 | 276 | | |
| |||
784 | 785 | | |
785 | 786 | | |
786 | 787 | | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
787 | 793 | | |
788 | 794 | | |
789 | 795 | | |
| |||
863 | 869 | | |
864 | 870 | | |
865 | 871 | | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
866 | 880 | | |
867 | 881 | | |
868 | 882 | | |
Lines changed: 70 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3518 | 3518 | | |
3519 | 3519 | | |
3520 | 3520 | | |
| 3521 | + | |
| 3522 | + | |
| 3523 | + | |
| 3524 | + | |
| 3525 | + | |
| 3526 | + | |
| 3527 | + | |
| 3528 | + | |
| 3529 | + | |
| 3530 | + | |
| 3531 | + | |
| 3532 | + | |
| 3533 | + | |
| 3534 | + | |
| 3535 | + | |
| 3536 | + | |
| 3537 | + | |
| 3538 | + | |
| 3539 | + | |
| 3540 | + | |
| 3541 | + | |
| 3542 | + | |
| 3543 | + | |
| 3544 | + | |
| 3545 | + | |
| 3546 | + | |
| 3547 | + | |
| 3548 | + | |
| 3549 | + | |
| 3550 | + | |
| 3551 | + | |
| 3552 | + | |
| 3553 | + | |
| 3554 | + | |
| 3555 | + | |
| 3556 | + | |
| 3557 | + | |
| 3558 | + | |
| 3559 | + | |
| 3560 | + | |
| 3561 | + | |
| 3562 | + | |
| 3563 | + | |
| 3564 | + | |
| 3565 | + | |
| 3566 | + | |
| 3567 | + | |
| 3568 | + | |
| 3569 | + | |
| 3570 | + | |
| 3571 | + | |
| 3572 | + | |
| 3573 | + | |
| 3574 | + | |
| 3575 | + | |
| 3576 | + | |
| 3577 | + | |
| 3578 | + | |
| 3579 | + | |
| 3580 | + | |
| 3581 | + | |
| 3582 | + | |
| 3583 | + | |
3521 | 3584 | | |
3522 | 3585 | | |
3523 | 3586 | | |
| |||
3551 | 3614 | | |
3552 | 3615 | | |
3553 | 3616 | | |
| 3617 | + | |
| 3618 | + | |
| 3619 | + | |
| 3620 | + | |
| 3621 | + | |
| 3622 | + | |
| 3623 | + | |
3554 | 3624 | | |
3555 | 3625 | | |
3556 | 3626 | | |
| |||
0 commit comments