Commit b382092
mlxsw: reg: Add support for VLAN RIF as part of RITR register
Router interfaces (RIFs) constructed on top of VLAN-aware bridges are of
"VLAN" type, whereas RIFs constructed on top of VLAN-unaware bridges of
"FID" type.
In other words, the RIF type is derived from the underlying FID type.
VLAN RIFs are used on top of 802.1Q FIDs, whereas FID RIFs are used on
top of 802.1D FIDs.
Currently 802.1Q FIDs are emulated using 802.1D FIDs, and therefore VLAN
RIFs are emulated using FID RIFs.
As part of converting the driver to use unified bridge, 802.1Q FIDs and
VLAN RIFs will be used.
Add the relevant fields to RITR register, add pack() function for VLAN
RIF and rename one field to fit the internal name.
Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 1b1c198 commit b382092
1 file changed
+26
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6911 | 6911 | | |
6912 | 6912 | | |
6913 | 6913 | | |
6914 | | - | |
| 6914 | + | |
6915 | 6915 | | |
6916 | 6916 | | |
6917 | 6917 | | |
6918 | | - | |
| 6918 | + | |
| 6919 | + | |
| 6920 | + | |
| 6921 | + | |
| 6922 | + | |
| 6923 | + | |
| 6924 | + | |
| 6925 | + | |
| 6926 | + | |
| 6927 | + | |
6919 | 6928 | | |
6920 | 6929 | | |
6921 | 6930 | | |
| |||
6935 | 6944 | | |
6936 | 6945 | | |
6937 | 6946 | | |
6938 | | - | |
| 6947 | + | |
6939 | 6948 | | |
6940 | 6949 | | |
6941 | 6950 | | |
| |||
7139 | 7148 | | |
7140 | 7149 | | |
7141 | 7150 | | |
| 7151 | + | |
| 7152 | + | |
| 7153 | + | |
| 7154 | + | |
| 7155 | + | |
| 7156 | + | |
| 7157 | + | |
| 7158 | + | |
| 7159 | + | |
| 7160 | + | |
| 7161 | + | |
| 7162 | + | |
| 7163 | + | |
| 7164 | + | |
7142 | 7165 | | |
7143 | 7166 | | |
7144 | 7167 | | |
| |||
0 commit comments