Commit a58f7f8
committed
Merge branch 'vlan_tpid'
Atzm Watanabe says:
====================
packet: deliver VLAN TPID to userspace
This patchset enables userspace to get VLAN TPID as well as the VLAN TCI.
After the 802.1AD support, userspace packet receivers (packet dumper,
software switch, and the like) need how to know VLAN TPID in order to
reconstruct original tagged frame.
v4: Simply use sizeof(tp_padding) for zeroing the padding bytes,
commented by David Laight.
Use __u16 for tp_vlan_tpid in tpacket_hdr_variant1,
commented by Daniel Borkmann.
v3: Add a definition which indicates whether tp_vlan_tpid is valid.
Explicitly define pad bytes for tpacket{2,3}_hdr and pick the area
for tp_vlan_tpid from the definition. Commented by David Laight.
v2: Add BUILD_BUG_ON() to make current aligned size of
struct tpacket{2,3}_hdr clear. Commented by Ben Hutchings.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>2 files changed
+33
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
| |||
133 | 134 | | |
134 | 135 | | |
135 | 136 | | |
136 | | - | |
| 137 | + | |
| 138 | + | |
137 | 139 | | |
138 | 140 | | |
139 | 141 | | |
140 | 142 | | |
141 | 143 | | |
| 144 | + | |
| 145 | + | |
142 | 146 | | |
143 | 147 | | |
144 | 148 | | |
| |||
154 | 158 | | |
155 | 159 | | |
156 | 160 | | |
| 161 | + | |
157 | 162 | | |
158 | 163 | | |
159 | 164 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
977 | 977 | | |
978 | 978 | | |
979 | 979 | | |
980 | | - | |
| 980 | + | |
| 981 | + | |
981 | 982 | | |
982 | 983 | | |
| 984 | + | |
983 | 985 | | |
984 | 986 | | |
985 | 987 | | |
986 | 988 | | |
987 | 989 | | |
988 | 990 | | |
989 | 991 | | |
| 992 | + | |
990 | 993 | | |
991 | 994 | | |
992 | 995 | | |
| |||
1812 | 1815 | | |
1813 | 1816 | | |
1814 | 1817 | | |
| 1818 | + | |
| 1819 | + | |
| 1820 | + | |
| 1821 | + | |
| 1822 | + | |
| 1823 | + | |
| 1824 | + | |
1815 | 1825 | | |
1816 | 1826 | | |
1817 | 1827 | | |
| |||
1918 | 1928 | | |
1919 | 1929 | | |
1920 | 1930 | | |
1921 | | - | |
| 1931 | + | |
| 1932 | + | |
1922 | 1933 | | |
1923 | 1934 | | |
| 1935 | + | |
1924 | 1936 | | |
1925 | | - | |
| 1937 | + | |
1926 | 1938 | | |
1927 | 1939 | | |
1928 | 1940 | | |
| |||
1936 | 1948 | | |
1937 | 1949 | | |
1938 | 1950 | | |
| 1951 | + | |
1939 | 1952 | | |
1940 | 1953 | | |
1941 | 1954 | | |
| |||
2867 | 2880 | | |
2868 | 2881 | | |
2869 | 2882 | | |
2870 | | - | |
| 2883 | + | |
| 2884 | + | |
2871 | 2885 | | |
2872 | 2886 | | |
| 2887 | + | |
2873 | 2888 | | |
2874 | | - | |
2875 | 2889 | | |
2876 | 2890 | | |
2877 | 2891 | | |
| |||
0 commit comments