Commit 2d3ee75
bpf: Introduce internal bpf_map_check_op_flags helper function
It is to unify map flags checking for lookup_elem, update_elem,
lookup_batch and update_batch APIs.
Therefore, it will be convenient to check BPF_F_CPU and BPF_F_ALL_CPUS
flags in it for these APIs in next patch.
Acked-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Leon Hwang <[email protected]>1 parent d3f58a7 commit 2d3ee75
2 files changed
+22
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3768 | 3768 | | |
3769 | 3769 | | |
3770 | 3770 | | |
| 3771 | + | |
| 3772 | + | |
| 3773 | + | |
| 3774 | + | |
| 3775 | + | |
| 3776 | + | |
| 3777 | + | |
| 3778 | + | |
| 3779 | + | |
| 3780 | + | |
| 3781 | + | |
3771 | 3782 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1708 | 1708 | | |
1709 | 1709 | | |
1710 | 1710 | | |
1711 | | - | |
1712 | | - | |
1713 | | - | |
1714 | 1711 | | |
1715 | 1712 | | |
1716 | 1713 | | |
1717 | 1714 | | |
1718 | 1715 | | |
1719 | 1716 | | |
1720 | 1717 | | |
1721 | | - | |
1722 | | - | |
1723 | | - | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
1724 | 1721 | | |
1725 | 1722 | | |
1726 | 1723 | | |
| |||
1783 | 1780 | | |
1784 | 1781 | | |
1785 | 1782 | | |
1786 | | - | |
1787 | | - | |
1788 | | - | |
| 1783 | + | |
| 1784 | + | |
1789 | 1785 | | |
1790 | | - | |
1791 | 1786 | | |
1792 | 1787 | | |
1793 | 1788 | | |
| |||
1991 | 1986 | | |
1992 | 1987 | | |
1993 | 1988 | | |
1994 | | - | |
1995 | | - | |
1996 | | - | |
1997 | | - | |
1998 | | - | |
1999 | | - | |
2000 | | - | |
| 1989 | + | |
| 1990 | + | |
| 1991 | + | |
2001 | 1992 | | |
2002 | 1993 | | |
2003 | 1994 | | |
| |||
2054 | 2045 | | |
2055 | 2046 | | |
2056 | 2047 | | |
2057 | | - | |
2058 | | - | |
2059 | | - | |
2060 | | - | |
2061 | | - | |
2062 | | - | |
| 2048 | + | |
| 2049 | + | |
| 2050 | + | |
2063 | 2051 | | |
2064 | 2052 | | |
2065 | 2053 | | |
| |||
0 commit comments