Commit 751969e
iavf: fix FDIR rule fields masks validation
Return an error if a field's mask is neither full nor empty. When a mask
is only partial the field is not being used for rule programming but it
gives a wrong impression it is used. Fix by returning an error on any
partial mask to make it clear they are not supported.
The ip_ver assignment is moved earlier in code to allow using it in
iavf_validate_fdir_fltr_masks.
Fixes: 527691b ("iavf: Support IPv4 Flow Director filters")
Fixes: e90cbc2 ("iavf: Support IPv6 Flow Director filters")
Signed-off-by: Piotr Gardocki <piotrx.gardocki@intel.com>
Tested-by: Rafal Romanowski <rafal.romanowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>1 parent de4c5ef commit 751969e
3 files changed
Lines changed: 85 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1289 | 1289 | | |
1290 | 1290 | | |
1291 | 1291 | | |
| 1292 | + | |
1292 | 1293 | | |
1293 | 1294 | | |
1294 | 1295 | | |
| |||
1300 | 1301 | | |
1301 | 1302 | | |
1302 | 1303 | | |
| 1304 | + | |
1303 | 1305 | | |
1304 | 1306 | | |
1305 | 1307 | | |
| |||
1312 | 1314 | | |
1313 | 1315 | | |
1314 | 1316 | | |
| 1317 | + | |
1315 | 1318 | | |
1316 | 1319 | | |
1317 | 1320 | | |
| |||
1330 | 1333 | | |
1331 | 1334 | | |
1332 | 1335 | | |
| 1336 | + | |
1333 | 1337 | | |
1334 | 1338 | | |
1335 | 1339 | | |
| |||
1345 | 1349 | | |
1346 | 1350 | | |
1347 | 1351 | | |
| 1352 | + | |
1348 | 1353 | | |
1349 | 1354 | | |
1350 | 1355 | | |
| |||
1361 | 1366 | | |
1362 | 1367 | | |
1363 | 1368 | | |
| 1369 | + | |
1364 | 1370 | | |
1365 | 1371 | | |
1366 | 1372 | | |
| |||
1371 | 1377 | | |
1372 | 1378 | | |
1373 | 1379 | | |
| 1380 | + | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
1374 | 1384 | | |
1375 | 1385 | | |
1376 | 1386 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
21 | 94 | | |
22 | 95 | | |
23 | 96 | | |
| |||
263 | 336 | | |
264 | 337 | | |
265 | 338 | | |
266 | | - | |
267 | | - | |
268 | 339 | | |
269 | 340 | | |
270 | 341 | | |
| |||
309 | 380 | | |
310 | 381 | | |
311 | 382 | | |
312 | | - | |
313 | | - | |
314 | 383 | | |
315 | 384 | | |
316 | 385 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| 113 | + | |
| 114 | + | |
113 | 115 | | |
114 | 116 | | |
115 | 117 | | |
| |||
0 commit comments