Commit c8e350e
net/mlx5e: Make TC and IPsec offloads mutually exclusive on a netdev
For IPsec packet offload mode, the order of TC offload and IPsec
offload on the same netdevice is not aligned with the order in the
non-offload software. For example, for RX, the software performs TC
first and then IPsec transformation, but the implementation for
offload does that in the opposite way.
To resolve the difference for now, either IPsec offload or TC offload,
not both, is allowed for a specific interface.
Signed-off-by: Jianbo Liu <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Link: https://lore.kernel.org/r/8e2e5e3b0984d785066e8663aaf97b3ba1bb873f.1690802064.git.leon@kernel.org
Signed-off-by: Jakub Kicinski <[email protected]>1 parent 6e56ab1 commit c8e350e
File tree
3 files changed
+129
-4
lines changed- drivers/net/ethernet/mellanox/mlx5/core
- en_accel
- include/linux/mlx5
3 files changed
+129
-4
lines changedLines changed: 80 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1717 | 1717 | | |
1718 | 1718 | | |
1719 | 1719 | | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
1720 | 1758 | | |
1721 | 1759 | | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
1722 | 1768 | | |
1723 | | - | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
1724 | 1777 | | |
1725 | | - | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
1726 | 1782 | | |
1727 | 1783 | | |
1728 | 1784 | | |
| |||
1735 | 1791 | | |
1736 | 1792 | | |
1737 | 1793 | | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
1738 | 1797 | | |
1739 | 1798 | | |
1740 | 1799 | | |
| |||
1747 | 1806 | | |
1748 | 1807 | | |
1749 | 1808 | | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
1750 | 1815 | | |
1751 | | - | |
| 1816 | + | |
| 1817 | + | |
| 1818 | + | |
| 1819 | + | |
| 1820 | + | |
| 1821 | + | |
| 1822 | + | |
| 1823 | + | |
1752 | 1824 | | |
1753 | | - | |
| 1825 | + | |
| 1826 | + | |
| 1827 | + | |
1754 | 1828 | | |
1755 | 1829 | | |
1756 | 1830 | | |
| |||
1760 | 1834 | | |
1761 | 1835 | | |
1762 | 1836 | | |
| 1837 | + | |
| 1838 | + | |
1763 | 1839 | | |
1764 | 1840 | | |
1765 | 1841 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4606 | 4606 | | |
4607 | 4607 | | |
4608 | 4608 | | |
| 4609 | + | |
| 4610 | + | |
| 4611 | + | |
| 4612 | + | |
| 4613 | + | |
| 4614 | + | |
| 4615 | + | |
| 4616 | + | |
| 4617 | + | |
| 4618 | + | |
| 4619 | + | |
| 4620 | + | |
| 4621 | + | |
| 4622 | + | |
| 4623 | + | |
| 4624 | + | |
| 4625 | + | |
| 4626 | + | |
| 4627 | + | |
| 4628 | + | |
| 4629 | + | |
| 4630 | + | |
| 4631 | + | |
| 4632 | + | |
| 4633 | + | |
| 4634 | + | |
| 4635 | + | |
| 4636 | + | |
| 4637 | + | |
| 4638 | + | |
| 4639 | + | |
| 4640 | + | |
| 4641 | + | |
| 4642 | + | |
| 4643 | + | |
| 4644 | + | |
| 4645 | + | |
| 4646 | + | |
| 4647 | + | |
| 4648 | + | |
4609 | 4649 | | |
4610 | 4650 | | |
4611 | 4651 | | |
| |||
4618 | 4658 | | |
4619 | 4659 | | |
4620 | 4660 | | |
| 4661 | + | |
| 4662 | + | |
| 4663 | + | |
| 4664 | + | |
4621 | 4665 | | |
4622 | 4666 | | |
4623 | 4667 | | |
| |||
4663 | 4707 | | |
4664 | 4708 | | |
4665 | 4709 | | |
| 4710 | + | |
4666 | 4711 | | |
| 4712 | + | |
4667 | 4713 | | |
4668 | 4714 | | |
4669 | 4715 | | |
| |||
4704 | 4750 | | |
4705 | 4751 | | |
4706 | 4752 | | |
| 4753 | + | |
4707 | 4754 | | |
4708 | 4755 | | |
4709 | 4756 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
806 | 806 | | |
807 | 807 | | |
808 | 808 | | |
| 809 | + | |
| 810 | + | |
809 | 811 | | |
810 | 812 | | |
811 | 813 | | |
| |||
0 commit comments