Commit e5c4777
committed
bnxt_en: ethtool: Support unset l4proto on ip4/ip6 ntuple rules
JIRA: https://issues.redhat.com/browse/RHEL-54644
commit 5f143ef
Author: Daniel Xu <dxu@dxuuu.xyz>
Date: Mon Nov 4 21:13:20 2024 -0700
bnxt_en: ethtool: Support unset l4proto on ip4/ip6 ntuple rules
Previously, trying to insert an ip4/ip6 ntuple rule with an unset
l4proto would get rejected with -EOPNOTSUPP. For example, the following
would fail:
ethtool -N eth0 flow-type ip6 dst-ip $IP6 context 1
The reason was that all the l4proto validation was being run despite the
l4proto mask being set to 0x0. Fix by respecting the mask on l4proto and
treating a mask of 0x0 as wildcard l4proto.
Signed-off-by: Daniel Xu <dxu@dxuuu.xyz>
Reviewed-by: Michael Chan <michael.chan@broadcom.com>
Link: https://patch.msgid.link/1ac93a2836b25f79e7045f8874d9a17875229ffc.1730778566.git.dxu@dxuuu.xyz
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Michal Schmidt <mschmidt@redhat.com>1 parent e0404d8 commit e5c4777
File tree
2 files changed
+24
-8
lines changed- drivers/net/ethernet/broadcom/bnxt
2 files changed
+24
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1131 | 1131 | | |
1132 | 1132 | | |
1133 | 1133 | | |
1134 | | - | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
1135 | 1140 | | |
1136 | 1141 | | |
1137 | 1142 | | |
| |||
1156 | 1161 | | |
1157 | 1162 | | |
1158 | 1163 | | |
1159 | | - | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
1160 | 1169 | | |
1161 | 1170 | | |
1162 | 1171 | | |
| |||
1281 | 1290 | | |
1282 | 1291 | | |
1283 | 1292 | | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
1284 | 1296 | | |
1285 | 1297 | | |
1286 | | - | |
1287 | | - | |
| 1298 | + | |
1288 | 1299 | | |
1289 | 1300 | | |
1290 | 1301 | | |
1291 | 1302 | | |
1292 | 1303 | | |
1293 | 1304 | | |
1294 | 1305 | | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
1295 | 1309 | | |
1296 | | - | |
1297 | | - | |
| 1310 | + | |
1298 | 1311 | | |
1299 | 1312 | | |
1300 | 1313 | | |
| |||
1348 | 1361 | | |
1349 | 1362 | | |
1350 | 1363 | | |
1351 | | - | |
| 1364 | + | |
| 1365 | + | |
1352 | 1366 | | |
1353 | 1367 | | |
1354 | 1368 | | |
| |||
1379 | 1393 | | |
1380 | 1394 | | |
1381 | 1395 | | |
1382 | | - | |
| 1396 | + | |
| 1397 | + | |
1383 | 1398 | | |
1384 | 1399 | | |
1385 | 1400 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
0 commit comments