Commit 8beecd4
net, sched: Add tcf_set_drop_reason for {__,}tcf_classify
mainline inclusion
from mainline-v6.7-rc1
category: feature
Add an initial user for the newly added tcf_set_drop_reason() helper to set the
drop reason for internal errors leading to TC_ACT_SHOT inside {__,}tcf_classify().
Right now this only adds a very basic SKB_DROP_REASON_TC_ERROR as a generic
fallback indicator to mark drop locations. Where needed, such locations can be
converted to more specific codes, for example, when hitting the reclassification
limit, etc.
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Cc: Victor Nogueira <victor@mojatatu.com>
Link: https://lore.kernel.org/r/20231009092655.22025-2-daniel@iogearbox.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
(cherry picked from commit 39d08b9)
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>1 parent bd303e1 commit 8beecd4
2 files changed
Lines changed: 23 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| |||
345 | 346 | | |
346 | 347 | | |
347 | 348 | | |
| 349 | + | |
| 350 | + | |
348 | 351 | | |
349 | 352 | | |
350 | 353 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1687 | 1687 | | |
1688 | 1688 | | |
1689 | 1689 | | |
1690 | | - | |
| 1690 | + | |
| 1691 | + | |
1691 | 1692 | | |
| 1693 | + | |
1692 | 1694 | | |
1693 | 1695 | | |
1694 | | - | |
| 1696 | + | |
| 1697 | + | |
1695 | 1698 | | |
| 1699 | + | |
1696 | 1700 | | |
1697 | 1701 | | |
1698 | 1702 | | |
| |||
1718 | 1722 | | |
1719 | 1723 | | |
1720 | 1724 | | |
1721 | | - | |
| 1725 | + | |
| 1726 | + | |
1722 | 1727 | | |
| 1728 | + | |
1723 | 1729 | | |
1724 | 1730 | | |
1725 | 1731 | | |
| |||
1729 | 1735 | | |
1730 | 1736 | | |
1731 | 1737 | | |
| 1738 | + | |
1732 | 1739 | | |
1733 | 1740 | | |
1734 | 1741 | | |
| |||
1765 | 1772 | | |
1766 | 1773 | | |
1767 | 1774 | | |
1768 | | - | |
| 1775 | + | |
| 1776 | + | |
1769 | 1777 | | |
| 1778 | + | |
1770 | 1779 | | |
1771 | 1780 | | |
1772 | 1781 | | |
1773 | 1782 | | |
1774 | 1783 | | |
1775 | 1784 | | |
1776 | 1785 | | |
1777 | | - | |
| 1786 | + | |
| 1787 | + | |
1778 | 1788 | | |
| 1789 | + | |
1779 | 1790 | | |
1780 | 1791 | | |
1781 | 1792 | | |
| |||
1794 | 1805 | | |
1795 | 1806 | | |
1796 | 1807 | | |
1797 | | - | |
| 1808 | + | |
| 1809 | + | |
1798 | 1810 | | |
| 1811 | + | |
| 1812 | + | |
1799 | 1813 | | |
1800 | 1814 | | |
1801 | 1815 | | |
| |||
0 commit comments