Commit ef2383d
net: hns3: store rx VLAN tag offload state for VF
The VF driver missed to store the rx VLAN tag strip state when
user change the rx VLAN tag offload state. And it will default
to enable the rx vlan tag strip when re-init VF device after
reset. So if user disable rx VLAN tag offload, and trig reset,
then the HW will still strip the VLAN tag from packet nad fill
into RX BD, but the VF driver will ignore it for rx VLAN tag
offload disabled. It may cause the rx VLAN tag dropped.
Fixes: b2641e2 ("net: hns3: Add support of hardware rx-vlan-offload to HNS3 VF driver")
Signed-off-by: Jian Shen <[email protected]>
Signed-off-by: Jijie Shao <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>1 parent c60e787 commit ef2383d
File tree
2 files changed
+20
-6
lines changed- drivers/net/ethernet/hisilicon/hns3/hns3vf
2 files changed
+20
-6
lines changedLines changed: 19 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1292 | 1292 | | |
1293 | 1293 | | |
1294 | 1294 | | |
1295 | | - | |
| 1295 | + | |
1296 | 1296 | | |
1297 | | - | |
1298 | 1297 | | |
1299 | 1298 | | |
1300 | 1299 | | |
| |||
1303 | 1302 | | |
1304 | 1303 | | |
1305 | 1304 | | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
1306 | 1318 | | |
1307 | 1319 | | |
1308 | 1320 | | |
| |||
2204 | 2216 | | |
2205 | 2217 | | |
2206 | 2218 | | |
2207 | | - | |
| 2219 | + | |
| 2220 | + | |
2208 | 2221 | | |
2209 | 2222 | | |
2210 | 2223 | | |
2211 | 2224 | | |
2212 | | - | |
| 2225 | + | |
2213 | 2226 | | |
2214 | 2227 | | |
2215 | 2228 | | |
| |||
2879 | 2892 | | |
2880 | 2893 | | |
2881 | 2894 | | |
2882 | | - | |
| 2895 | + | |
2883 | 2896 | | |
2884 | 2897 | | |
2885 | 2898 | | |
| |||
2994 | 3007 | | |
2995 | 3008 | | |
2996 | 3009 | | |
2997 | | - | |
| 3010 | + | |
2998 | 3011 | | |
2999 | 3012 | | |
3000 | 3013 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| 256 | + | |
256 | 257 | | |
257 | 258 | | |
258 | 259 | | |
| |||
0 commit comments