Commit c85c659
bpf: Enable read/write access to skb metadata through a dynptr
Now that we can create a dynptr to skb metadata, make reads to the metadata
area possible with bpf_dynptr_read() or through a bpf_dynptr_slice(), and
make writes to the metadata area possible with bpf_dynptr_write() or
through a bpf_dynptr_slice_rdwr().
Reviewed-by: Jesse Brandeburg <[email protected]>
Signed-off-by: Jakub Sitnicki <[email protected]>1 parent d586f38 commit c85c659
3 files changed
+23
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1784 | 1784 | | |
1785 | 1785 | | |
1786 | 1786 | | |
| 1787 | + | |
1787 | 1788 | | |
1788 | 1789 | | |
1789 | 1790 | | |
| |||
1818 | 1819 | | |
1819 | 1820 | | |
1820 | 1821 | | |
| 1822 | + | |
| 1823 | + | |
| 1824 | + | |
| 1825 | + | |
| 1826 | + | |
1821 | 1827 | | |
1822 | 1828 | | |
1823 | 1829 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1781 | 1781 | | |
1782 | 1782 | | |
1783 | 1783 | | |
1784 | | - | |
| 1784 | + | |
| 1785 | + | |
1785 | 1786 | | |
1786 | 1787 | | |
1787 | 1788 | | |
| |||
1839 | 1840 | | |
1840 | 1841 | | |
1841 | 1842 | | |
1842 | | - | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
1843 | 1847 | | |
1844 | 1848 | | |
1845 | 1849 | | |
| |||
2716 | 2720 | | |
2717 | 2721 | | |
2718 | 2722 | | |
2719 | | - | |
| 2723 | + | |
2720 | 2724 | | |
2721 | 2725 | | |
2722 | 2726 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11987 | 11987 | | |
11988 | 11988 | | |
11989 | 11989 | | |
| 11990 | + | |
| 11991 | + | |
| 11992 | + | |
| 11993 | + | |
| 11994 | + | |
| 11995 | + | |
| 11996 | + | |
| 11997 | + | |
| 11998 | + | |
| 11999 | + | |
11990 | 12000 | | |
11991 | 12001 | | |
11992 | 12002 | | |
| |||
0 commit comments