pylint 3.3.7 astroid 3.3.8 Python 3.13.5 (main, Jun 12 2025, 00:00:00) [GCC 15.1.1 20250521 (Red Hat 15.1.1-2)] Redirect to /tmp/tmp.fFccjLhSsY and /tmp/tmp.LW4bSKEWa0 Tree base: da114122b831 ("net: ethernet: stmmac: dwmac-rk: Make the clk_phy could be used for external phy") Now at: c97b3f2cbbc9 ("selftests: net: bpf_offload: print loaded programs on mismatch") ====== Checking before the patch ====== ************* Module bpf_offload tools/testing/selftests/net/bpf_offload.py:194:0: C0301: Line too long (108/100) (line-too-long) tools/testing/selftests/net/bpf_offload.py:207:0: C0301: Line too long (109/100) (line-too-long) tools/testing/selftests/net/bpf_offload.py:217:0: C0301: Line too long (104/100) (line-too-long) tools/testing/selftests/net/bpf_offload.py:408:0: C0301: Line too long (145/100) (line-too-long) tools/testing/selftests/net/bpf_offload.py:540:0: C0325: Unnecessary parens after '=' keyword (superfluous-parens) tools/testing/selftests/net/bpf_offload.py:1:0: C0302: Too many lines in module (1357/1000) (too-many-lines) tools/testing/selftests/net/bpf_offload.py:1:0: C0114: Missing module docstring (missing-module-docstring) tools/testing/selftests/net/bpf_offload.py:35:0: C0103: Constant name "logfile" doesn't conform to UPPER_CASE naming style (invalid-name) tools/testing/selftests/net/bpf_offload.py:36:0: C0103: Constant name "log_level" doesn't conform to UPPER_CASE naming style (invalid-name) tools/testing/selftests/net/bpf_offload.py:37:0: C0103: Constant name "skip_extack" doesn't conform to UPPER_CASE naming style (invalid-name) tools/testing/selftests/net/bpf_offload.py:44:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:47:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:48:4: W0603: Using the global statement (global-statement) tools/testing/selftests/net/bpf_offload.py:51:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:52:4: W0603: Using the global statement (global-statement) tools/testing/selftests/net/bpf_offload.py:55:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:56:4: W0603: Using the global statement (global-statement) tools/testing/selftests/net/bpf_offload.py:78:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:85:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:94:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:99:8: W0621: Redefining name 'cmd' from outer scope (line 99) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:99:65: W0621: Redefining name 'fail' from outer scope (line 85) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:107:14: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:104:11: R1732: Consider using 'with' for resource-allocating operations (consider-using-with) tools/testing/selftests/net/bpf_offload.py:114:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:114:43: W0621: Redefining name 'fail' from outer scope (line 85) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:127:8: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:134:8: W0719: Raising too general exception: Exception (broad-exception-raised) tools/testing/selftests/net/bpf_offload.py:134:24: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:136:4: R1705: Unnecessary "else" after "return", remove the "else" and de-indent the code inside it (no-else-return) tools/testing/selftests/net/bpf_offload.py:141:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:142:8: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:146:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:146:28: C0103: Argument name "JSON" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/net/bpf_offload.py:146:0: R0913: Too many arguments (7/5) (too-many-arguments) tools/testing/selftests/net/bpf_offload.py:146:0: R0917: Too many positional arguments (7/5) (too-many-positional-arguments) tools/testing/selftests/net/bpf_offload.py:146:15: W0621: Redefining name 'args' from outer scope (line 696) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:146:39: W0621: Redefining name 'ns' from outer scope (line 744) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:146:46: W0621: Redefining name 'fail' from outer scope (line 85) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:157:8: W0621: Redefining name 'ret' from outer scope (line 708) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:164:8: W0621: Redefining name 'out' from outer scope (line 720) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:149:18: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:152:13: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:168:4: R1705: Unnecessary "else" after "return", remove the "else" and de-indent the code inside it (no-else-return) tools/testing/selftests/net/bpf_offload.py:173:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:173:18: C0103: Argument name "JSON" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/net/bpf_offload.py:173:12: W0621: Redefining name 'args' from outer scope (line 696) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:173:29: W0621: Redefining name 'ns' from outer scope (line 744) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:173:36: W0621: Redefining name 'fail' from outer scope (line 85) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:177:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:177:37: W0621: Redefining name 'ns' from outer scope (line 744) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:178:7: W0621: Redefining name 'progs' from outer scope (line 708) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:178:4: W0632: Possible unbalanced tuple unpacking with sequence defined at line 169: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:187:23: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:191:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:191:36: W0621: Redefining name 'ns' from outer scope (line 744) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:192:7: W0621: Redefining name 'maps' from outer scope (line 1161) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:192:4: W0632: Possible unbalanced tuple unpacking with sequence defined at line 169: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:197:23: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:201:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:202:8: W0621: Redefining name 'i' from outer scope (line 836) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:207:4: W0719: Raising too general exception: Exception (broad-exception-raised) tools/testing/selftests/net/bpf_offload.py:207:20: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:202:8: W0612: Unused variable 'i' (unused-variable) tools/testing/selftests/net/bpf_offload.py:209:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:209:50: W0621: Redefining name 'ns' from outer scope (line 744) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:211:8: W0621: Redefining name 'i' from outer scope (line 836) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:212:8: W0621: Redefining name 'maps' from outer scope (line 1161) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:217:4: W0719: Raising too general exception: Exception (broad-exception-raised) tools/testing/selftests/net/bpf_offload.py:217:20: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:211:8: W0612: Unused variable 'i' (unused-variable) tools/testing/selftests/net/bpf_offload.py:219:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:219:0: W0102: Dangerous default value [] as argument (dangerous-default-value) tools/testing/selftests/net/bpf_offload.py:219:0: R0913: Too many arguments (8/5) (too-many-arguments) tools/testing/selftests/net/bpf_offload.py:219:0: R0917: Too many positional arguments (8/5) (too-many-positional-arguments) tools/testing/selftests/net/bpf_offload.py:219:41: W0621: Redefining name 'maps' from outer scope (line 1161) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:220:22: W0621: Redefining name 'fail' from outer scope (line 85) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:221:4: W0621: Redefining name 'args' from outer scope (line 696) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:221:11: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:228:7: C1802: Do not use `len(SEQUENCE)` without comparison to determine if a sequence is empty (use-implicit-booleaness-not-len) tools/testing/selftests/net/bpf_offload.py:236:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:236:26: C0103: Argument name "JSON" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/net/bpf_offload.py:236:0: R0913: Too many arguments (6/5) (too-many-arguments) tools/testing/selftests/net/bpf_offload.py:236:0: R0917: Too many positional arguments (6/5) (too-many-positional-arguments) tools/testing/selftests/net/bpf_offload.py:236:7: W0621: Redefining name 'args' from outer scope (line 696) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:236:37: W0621: Redefining name 'ns' from outer scope (line 744) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:236:44: W0621: Redefining name 'fail' from outer scope (line 85) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:242:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:242:13: C0103: Argument name "JSON" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/net/bpf_offload.py:242:7: W0621: Redefining name 'args' from outer scope (line 696) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:242:24: W0621: Redefining name 'ns' from outer scope (line 744) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:242:31: W0621: Redefining name 'fail' from outer scope (line 85) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:246:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:246:22: W0621: Redefining name 'args' from outer scope (line 696) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:246:28: W0621: Redefining name 'fail' from outer scope (line 85) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:247:15: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:249:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:250:11: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:252:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:253:11: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:255:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:255:17: W0621: Redefining name 'bytecode' from outer scope (line 751) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:256:11: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:258:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:259:8: W0621: Redefining name 'i' from outer scope (line 836) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:261:8: W0621: Redefining name 'ret' from outer scope (line 708) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:261:8: W0632: Possible unbalanced tuple unpacking with sequence defined at line 169: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:261:20: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:267:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:267:17: W0621: Redefining name 'val' from outer scope (line 1205) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:268:4: W0621: Redefining name 'ret' from outer scope (line 708) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:271:24: W0108: Lambda may not be necessary (unnecessary-lambda) tools/testing/selftests/net/bpf_offload.py:273:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:275:8: W0621: Redefining name 'i' from outer scope (line 836) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:283:8: W0719: Raising too general exception: Exception (broad-exception-raised) tools/testing/selftests/net/bpf_offload.py:283:24: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:299:26: W0621: Redefining name 'key' from outer scope (line 1203) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:300:11: C0123: Use isinstance() rather than type() for a typecheck. (unidiomatic-typecheck) tools/testing/selftests/net/bpf_offload.py:304:26: W0621: Redefining name 'key' from outer scope (line 1203) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:311:11: W0621: Redefining name 'out' from outer scope (line 720) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:305:12: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:308:12: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:311:21: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:315:8: W0621: Redefining name 'dfs' from outer scope (line 873) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:320:11: W0621: Redefining name 'out' from outer scope (line 720) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:317:12: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:332:24: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:333:29: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:338:16: W0719: Raising too general exception: Exception (broad-exception-raised) tools/testing/selftests/net/bpf_offload.py:338:32: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:350:37: W0621: Redefining name 'ns' from outer scope (line 744) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:357:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:359:11: W0621: Redefining name 'progs' from outer scope (line 708) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:359:23: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:362:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:363:8: W0621: Redefining name 'progs' from outer scope (line 708) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:366:27: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:380:52: W0621: Redefining name 'ns' from outer scope (line 744) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:383:23: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:386:26: W0621: Redefining name 'key' from outer scope (line 1203) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:389:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:392:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:396:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:398:22: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:401:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:402:12: W0621: Redefining name 'i' from outer scope (line 836) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:408:8: W0719: Raising too general exception: Exception (broad-exception-raised) tools/testing/selftests/net/bpf_offload.py:408:24: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:402:12: W0612: Unused variable 'i' (unused-variable) tools/testing/selftests/net/bpf_offload.py:410:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:410:21: W0621: Redefining name 'ns' from outer scope (line 744) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:412:11: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:415:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:415:27: W0621: Redefining name 'fail' from outer scope (line 85) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:416:18: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:419:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:419:46: C0103: Argument name "JSON" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/net/bpf_offload.py:419:4: R0913: Too many arguments (8/5) (too-many-arguments) tools/testing/selftests/net/bpf_offload.py:419:4: R0917: Too many positional arguments (8/5) (too-many-positional-arguments) tools/testing/selftests/net/bpf_offload.py:420:16: W0621: Redefining name 'fail' from outer scope (line 85) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:423:18: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:427:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:427:43: C0103: Argument name "JSON" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/net/bpf_offload.py:427:4: R0913: Too many arguments (6/5) (too-many-arguments) tools/testing/selftests/net/bpf_offload.py:427:4: R0917: Too many positional arguments (6/5) (too-many-positional-arguments) tools/testing/selftests/net/bpf_offload.py:428:18: W0621: Redefining name 'fail' from outer scope (line 85) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:429:18: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:433:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:434:8: W0632: Possible unbalanced tuple unpacking with sequence defined at line 169: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:434:21: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:436:12: W0719: Raising too general exception: Exception (broad-exception-raised) tools/testing/selftests/net/bpf_offload.py:439:13: W3601: Suspicious 2-part chained comparison using semantically incompatible operators ('!=' and 'in') (bad-chained-comparison) tools/testing/selftests/net/bpf_offload.py:440:13: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:444:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:445:11: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:447:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:448:11: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:450:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:455:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:460:8: W0621: Redefining name 'args' from outer scope (line 696) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:461:11: W0621: Redefining name 'out' from outer scope (line 720) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:469:12: W0621: Redefining name 'fltr' from outer scope (line 790) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:460:15: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:461:8: W0632: Possible unbalanced tuple unpacking with sequence defined at line 169: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:482:17: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:486:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:486:4: R0913: Too many arguments (10/5) (too-many-arguments) tools/testing/selftests/net/bpf_offload.py:486:4: R0917: Too many positional arguments (10/5) (too-many-positional-arguments) tools/testing/selftests/net/bpf_offload.py:488:22: W0621: Redefining name 'fail' from outer scope (line 85) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:491:20: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:493:20: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:495:20: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:497:18: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:502:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:502:4: R0913: Too many arguments (12/5) (too-many-arguments) tools/testing/selftests/net/bpf_offload.py:502:4: R0917: Too many positional arguments (12/5) (too-many-positional-arguments) tools/testing/selftests/net/bpf_offload.py:505:27: W0621: Redefining name 'fail' from outer scope (line 85) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:522:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:522:46: W0621: Redefining name 'fail' from outer scope (line 85) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:523:8: W0621: Redefining name 'args' from outer scope (line 696) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:523:15: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:527:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:534:8: W0621: Redefining name 'ns' from outer scope (line 744) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:528:4: W0602: Using global for 'devs' but no assignment is done (global-variable-not-assigned) tools/testing/selftests/net/bpf_offload.py:533:12: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:535:12: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:539:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:540:4: W0621: Redefining name 'progs' from outer scope (line 708) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:541:4: W0621: Redefining name 'prog' from outer scope (line 878) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:542:12: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:547:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:548:4: W0621: Redefining name 'maps' from outer scope (line 1161) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:549:4: W0621: Redefining name 'm' from outer scope (line 1164) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:550:12: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:555:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:555:27: W0621: Redefining name 'prog_file' from outer scope (line 1145) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:555:43: W0621: Redefining name 'map_file' from outer scope (line 1146) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:558:4: W0621: Redefining name 'ret' from outer scope (line 708) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:558:9: W0621: Redefining name 'err' from outer scope (line 736) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:558:4: W0632: Possible unbalanced tuple unpacking with sequence defined at line 169: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:558:23: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:562:4: W0632: Possible unbalanced tuple unpacking with sequence defined at line 169: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:562:23: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:565:9: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:568:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:568:29: W0621: Redefining name 'ns' from outer scope (line 744) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:568:33: W0621: Redefining name 'prog_file' from outer scope (line 1145) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:568:49: W0621: Redefining name 'map_file' from outer scope (line 1146) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:569:4: W0621: Redefining name 'progs' from outer scope (line 708) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:570:4: W0621: Redefining name 'prog' from outer scope (line 878) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:585:4: W0621: Redefining name 'maps' from outer scope (line 1161) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:586:8: W0621: Redefining name 'm' from outer scope (line 1164) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:581:13: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:568:33: W0613: Unused argument 'prog_file' (unused-argument) tools/testing/selftests/net/bpf_offload.py:568:49: W0613: Unused argument 'map_file' (unused-argument) tools/testing/selftests/net/bpf_offload.py:568:64: W0613: Unused argument 'removed' (unused-argument) tools/testing/selftests/net/bpf_offload.py:590:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:590:36: W0621: Redefining name 'args' from outer scope (line 696) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:590:36: W0613: Unused argument 'args' (unused-argument) tools/testing/selftests/net/bpf_offload.py:597:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:597:41: W0621: Redefining name 'args' from outer scope (line 696) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:600:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:603:9: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:605:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:612:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:621:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:621:24: W0621: Redefining name 'sim' from outer scope (line 755) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:621:29: W0621: Redefining name 'obj' from outer scope (line 750) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:632:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:632:20: W0621: Redefining name 'simdev' from outer scope (line 754) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:632:28: W0621: Redefining name 'sim' from outer scope (line 755) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:632:33: W0621: Redefining name 'obj' from outer scope (line 750) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:654:4: W0621: Redefining name 'ret' from outer scope (line 708) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:654:12: W0621: Redefining name 'err' from outer scope (line 736) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:633:15: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:689:4: W0632: Possible unbalanced tuple unpacking with sequence defined at line 85 of lib.py.nsim: left side has 1 label, right side has 0 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:698:14: W1514: Using open without explicitly specifying an encoding (unspecified-encoding) tools/testing/selftests/net/bpf_offload.py:708:0: W0632: Possible unbalanced tuple unpacking with sequence defined at line 169: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:711:0: W0632: Possible unbalanced tuple unpacking with sequence defined at line 169: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:731:19: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:732:19: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:741:4: C0103: Constant name "skip_extack" doesn't conform to UPPER_CASE naming style (invalid-name) tools/testing/selftests/net/bpf_offload.py:746:4: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:751:4: C0103: Constant name "bytecode" doesn't conform to UPPER_CASE naming style (invalid-name) tools/testing/selftests/net/bpf_offload.py:755:4: W0632: Possible unbalanced tuple unpacking with sequence defined at line 85 of lib.py.nsim: left side has 1 label, right side has 0 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:761:4: W0632: Possible unbalanced tuple unpacking with sequence defined at line 85 of lib.py.nsim: left side has 1 label, right side has 0 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:842:17: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:913:4: W0632: Possible unbalanced tuple unpacking with sequence defined at line 85 of lib.py.nsim: left side has 1 label, right side has 0 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:922:4: W0632: Possible unbalanced tuple unpacking with sequence defined at line 85 of lib.py.nsim: left side has 1 label, right side has 0 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:971:4: C0103: Constant name "nooffload" doesn't conform to UPPER_CASE naming style (invalid-name) tools/testing/selftests/net/bpf_offload.py:981:4: C0103: Constant name "offload" doesn't conform to UPPER_CASE naming style (invalid-name) tools/testing/selftests/net/bpf_offload.py:990:4: C0103: Constant name "devbound" doesn't conform to UPPER_CASE naming style (invalid-name) tools/testing/selftests/net/bpf_offload.py:1036:4: W0632: Possible unbalanced tuple unpacking with sequence defined at line 85 of lib.py.nsim: left side has 1 label, right side has 0 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:1100:4: C0103: Constant name "delay_msec" doesn't conform to UPPER_CASE naming style (invalid-name) tools/testing/selftests/net/bpf_offload.py:1103:15: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1111:4: W0632: Possible unbalanced tuple unpacking with sequence defined at line 137: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:1113:16: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1116:4: C0103: Constant name "delay_sec" doesn't conform to UPPER_CASE naming style (invalid-name) tools/testing/selftests/net/bpf_offload.py:1117:32: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1125:4: W0632: Possible unbalanced tuple unpacking with sequence defined at line 85 of lib.py.nsim: left side has 1 label, right side has 0 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:1157:4: W0632: Possible unbalanced tuple unpacking with sequence defined at line 85 of lib.py.nsim: left side has 1 label, right side has 0 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:1166:20: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1170:8: W0632: Possible unbalanced tuple unpacking with sequence defined at line 169: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:1170:25: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1178:20: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1182:8: W0632: Possible unbalanced tuple unpacking with sequence defined at line 169: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:1182:27: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1187:13: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1192:12: W0632: Possible unbalanced tuple unpacking with sequence defined at line 169: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:1192:31: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1197:13: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1201:8: W0632: Possible unbalanced tuple unpacking with sequence defined at line 169: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:1201:29: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1204:27: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1206:31: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1210:8: W0632: Possible unbalanced tuple unpacking with sequence defined at line 169: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:1210:27: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1212:23: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1213:8: W0632: Possible unbalanced tuple unpacking with sequence defined at line 169: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:1213:27: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1216:23: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1217:8: W0632: Possible unbalanced tuple unpacking with sequence defined at line 169: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:1217:27: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1221:13: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1225:16: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1229:8: W0632: Possible unbalanced tuple unpacking with sequence defined at line 169: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:1229:27: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1233:13: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1241:4: W0632: Possible unbalanced tuple unpacking with sequence defined at line 85 of lib.py.nsim: left side has 1 label, right side has 0 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:1248:4: W0632: Possible unbalanced tuple unpacking with sequence defined at line 85 of lib.py.nsim: left side has 1 label, right side has 0 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:1258:4: W0632: Possible unbalanced tuple unpacking with sequence defined at line 85 of lib.py.nsim: left side has 1 label, right side has 0 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:1260:4: W0632: Possible unbalanced tuple unpacking with sequence defined at line 85 of lib.py.nsim: left side has 3 labels, right side has 0 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:1266:4: C0103: Constant name "progA" doesn't conform to UPPER_CASE naming style (invalid-name) tools/testing/selftests/net/bpf_offload.py:1269:4: C0103: Constant name "progB" doesn't conform to UPPER_CASE naming style (invalid-name) tools/testing/selftests/net/bpf_offload.py:1298:19: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1299:19: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1301:4: W0632: Possible unbalanced tuple unpacking with sequence defined at line 169: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:1303:37: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1310:42: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1318:42: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1330:22: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1336:22: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1341:22: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1349:4: W0632: Possible unbalanced tuple unpacking with sequence defined at line 169: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:1349:23: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1352:10: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:698:14: R1732: Consider using 'with' for resource-allocating operations (consider-using-with) tools/testing/selftests/net/bpf_offload.py:19:0: W0611: Unused import errno (unused-import) tools/testing/selftests/net/bpf_offload.py:24:0: W0611: Unused import re (unused-import) ----------------------------------- Your code has been rated at 6.53/10 ====== Checking the tree with the patch ====== ************* Module bpf_offload tools/testing/selftests/net/bpf_offload.py:194:0: C0301: Line too long (108/100) (line-too-long) tools/testing/selftests/net/bpf_offload.py:207:0: C0301: Line too long (109/100) (line-too-long) tools/testing/selftests/net/bpf_offload.py:217:0: C0301: Line too long (104/100) (line-too-long) tools/testing/selftests/net/bpf_offload.py:408:0: C0301: Line too long (145/100) (line-too-long) tools/testing/selftests/net/bpf_offload.py:540:0: C0325: Unnecessary parens after '=' keyword (superfluous-parens) tools/testing/selftests/net/bpf_offload.py:1:0: C0302: Too many lines in module (1357/1000) (too-many-lines) tools/testing/selftests/net/bpf_offload.py:1:0: C0114: Missing module docstring (missing-module-docstring) tools/testing/selftests/net/bpf_offload.py:35:0: C0103: Constant name "logfile" doesn't conform to UPPER_CASE naming style (invalid-name) tools/testing/selftests/net/bpf_offload.py:36:0: C0103: Constant name "log_level" doesn't conform to UPPER_CASE naming style (invalid-name) tools/testing/selftests/net/bpf_offload.py:37:0: C0103: Constant name "skip_extack" doesn't conform to UPPER_CASE naming style (invalid-name) tools/testing/selftests/net/bpf_offload.py:44:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:47:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:48:4: W0603: Using the global statement (global-statement) tools/testing/selftests/net/bpf_offload.py:51:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:52:4: W0603: Using the global statement (global-statement) tools/testing/selftests/net/bpf_offload.py:55:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:56:4: W0603: Using the global statement (global-statement) tools/testing/selftests/net/bpf_offload.py:78:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:85:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:94:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:99:8: W0621: Redefining name 'cmd' from outer scope (line 99) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:99:65: W0621: Redefining name 'fail' from outer scope (line 85) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:107:14: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:104:11: R1732: Consider using 'with' for resource-allocating operations (consider-using-with) tools/testing/selftests/net/bpf_offload.py:114:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:114:43: W0621: Redefining name 'fail' from outer scope (line 85) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:127:8: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:134:8: W0719: Raising too general exception: Exception (broad-exception-raised) tools/testing/selftests/net/bpf_offload.py:134:24: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:136:4: R1705: Unnecessary "else" after "return", remove the "else" and de-indent the code inside it (no-else-return) tools/testing/selftests/net/bpf_offload.py:141:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:142:8: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:146:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:146:28: C0103: Argument name "JSON" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/net/bpf_offload.py:146:0: R0913: Too many arguments (7/5) (too-many-arguments) tools/testing/selftests/net/bpf_offload.py:146:0: R0917: Too many positional arguments (7/5) (too-many-positional-arguments) tools/testing/selftests/net/bpf_offload.py:146:15: W0621: Redefining name 'args' from outer scope (line 696) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:146:39: W0621: Redefining name 'ns' from outer scope (line 744) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:146:46: W0621: Redefining name 'fail' from outer scope (line 85) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:157:8: W0621: Redefining name 'ret' from outer scope (line 708) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:164:8: W0621: Redefining name 'out' from outer scope (line 720) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:149:18: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:152:13: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:168:4: R1705: Unnecessary "else" after "return", remove the "else" and de-indent the code inside it (no-else-return) tools/testing/selftests/net/bpf_offload.py:173:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:173:18: C0103: Argument name "JSON" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/net/bpf_offload.py:173:12: W0621: Redefining name 'args' from outer scope (line 696) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:173:29: W0621: Redefining name 'ns' from outer scope (line 744) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:173:36: W0621: Redefining name 'fail' from outer scope (line 85) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:177:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:177:37: W0621: Redefining name 'ns' from outer scope (line 744) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:178:7: W0621: Redefining name 'progs' from outer scope (line 708) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:178:4: W0632: Possible unbalanced tuple unpacking with sequence defined at line 169: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:187:23: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:191:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:191:36: W0621: Redefining name 'ns' from outer scope (line 744) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:192:7: W0621: Redefining name 'maps' from outer scope (line 1161) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:192:4: W0632: Possible unbalanced tuple unpacking with sequence defined at line 169: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:197:23: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:201:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:202:8: W0621: Redefining name 'i' from outer scope (line 836) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:207:4: W0719: Raising too general exception: Exception (broad-exception-raised) tools/testing/selftests/net/bpf_offload.py:207:20: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:202:8: W0612: Unused variable 'i' (unused-variable) tools/testing/selftests/net/bpf_offload.py:209:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:209:50: W0621: Redefining name 'ns' from outer scope (line 744) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:211:8: W0621: Redefining name 'i' from outer scope (line 836) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:212:8: W0621: Redefining name 'maps' from outer scope (line 1161) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:217:4: W0719: Raising too general exception: Exception (broad-exception-raised) tools/testing/selftests/net/bpf_offload.py:217:20: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:211:8: W0612: Unused variable 'i' (unused-variable) tools/testing/selftests/net/bpf_offload.py:219:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:219:0: W0102: Dangerous default value [] as argument (dangerous-default-value) tools/testing/selftests/net/bpf_offload.py:219:0: R0913: Too many arguments (8/5) (too-many-arguments) tools/testing/selftests/net/bpf_offload.py:219:0: R0917: Too many positional arguments (8/5) (too-many-positional-arguments) tools/testing/selftests/net/bpf_offload.py:219:41: W0621: Redefining name 'maps' from outer scope (line 1161) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:220:22: W0621: Redefining name 'fail' from outer scope (line 85) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:221:4: W0621: Redefining name 'args' from outer scope (line 696) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:221:11: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:228:7: C1802: Do not use `len(SEQUENCE)` without comparison to determine if a sequence is empty (use-implicit-booleaness-not-len) tools/testing/selftests/net/bpf_offload.py:236:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:236:26: C0103: Argument name "JSON" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/net/bpf_offload.py:236:0: R0913: Too many arguments (6/5) (too-many-arguments) tools/testing/selftests/net/bpf_offload.py:236:0: R0917: Too many positional arguments (6/5) (too-many-positional-arguments) tools/testing/selftests/net/bpf_offload.py:236:7: W0621: Redefining name 'args' from outer scope (line 696) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:236:37: W0621: Redefining name 'ns' from outer scope (line 744) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:236:44: W0621: Redefining name 'fail' from outer scope (line 85) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:242:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:242:13: C0103: Argument name "JSON" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/net/bpf_offload.py:242:7: W0621: Redefining name 'args' from outer scope (line 696) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:242:24: W0621: Redefining name 'ns' from outer scope (line 744) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:242:31: W0621: Redefining name 'fail' from outer scope (line 85) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:246:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:246:22: W0621: Redefining name 'args' from outer scope (line 696) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:246:28: W0621: Redefining name 'fail' from outer scope (line 85) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:247:15: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:249:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:250:11: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:252:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:253:11: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:255:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:255:17: W0621: Redefining name 'bytecode' from outer scope (line 751) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:256:11: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:258:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:259:8: W0621: Redefining name 'i' from outer scope (line 836) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:261:8: W0621: Redefining name 'ret' from outer scope (line 708) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:261:8: W0632: Possible unbalanced tuple unpacking with sequence defined at line 169: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:261:20: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:267:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:267:17: W0621: Redefining name 'val' from outer scope (line 1205) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:268:4: W0621: Redefining name 'ret' from outer scope (line 708) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:271:24: W0108: Lambda may not be necessary (unnecessary-lambda) tools/testing/selftests/net/bpf_offload.py:273:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:275:8: W0621: Redefining name 'i' from outer scope (line 836) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:283:8: W0719: Raising too general exception: Exception (broad-exception-raised) tools/testing/selftests/net/bpf_offload.py:283:24: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:299:26: W0621: Redefining name 'key' from outer scope (line 1203) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:300:11: C0123: Use isinstance() rather than type() for a typecheck. (unidiomatic-typecheck) tools/testing/selftests/net/bpf_offload.py:304:26: W0621: Redefining name 'key' from outer scope (line 1203) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:311:11: W0621: Redefining name 'out' from outer scope (line 720) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:305:12: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:308:12: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:311:21: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:315:8: W0621: Redefining name 'dfs' from outer scope (line 873) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:320:11: W0621: Redefining name 'out' from outer scope (line 720) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:317:12: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:332:24: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:333:29: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:338:16: W0719: Raising too general exception: Exception (broad-exception-raised) tools/testing/selftests/net/bpf_offload.py:338:32: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:350:37: W0621: Redefining name 'ns' from outer scope (line 744) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:357:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:359:11: W0621: Redefining name 'progs' from outer scope (line 708) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:359:23: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:362:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:363:8: W0621: Redefining name 'progs' from outer scope (line 708) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:366:27: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:380:52: W0621: Redefining name 'ns' from outer scope (line 744) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:383:23: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:386:26: W0621: Redefining name 'key' from outer scope (line 1203) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:389:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:392:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:396:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:398:22: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:401:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:402:12: W0621: Redefining name 'i' from outer scope (line 836) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:408:8: W0719: Raising too general exception: Exception (broad-exception-raised) tools/testing/selftests/net/bpf_offload.py:408:24: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:402:12: W0612: Unused variable 'i' (unused-variable) tools/testing/selftests/net/bpf_offload.py:410:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:410:21: W0621: Redefining name 'ns' from outer scope (line 744) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:412:11: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:415:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:415:27: W0621: Redefining name 'fail' from outer scope (line 85) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:416:18: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:419:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:419:46: C0103: Argument name "JSON" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/net/bpf_offload.py:419:4: R0913: Too many arguments (8/5) (too-many-arguments) tools/testing/selftests/net/bpf_offload.py:419:4: R0917: Too many positional arguments (8/5) (too-many-positional-arguments) tools/testing/selftests/net/bpf_offload.py:420:16: W0621: Redefining name 'fail' from outer scope (line 85) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:423:18: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:427:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:427:43: C0103: Argument name "JSON" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/net/bpf_offload.py:427:4: R0913: Too many arguments (6/5) (too-many-arguments) tools/testing/selftests/net/bpf_offload.py:427:4: R0917: Too many positional arguments (6/5) (too-many-positional-arguments) tools/testing/selftests/net/bpf_offload.py:428:18: W0621: Redefining name 'fail' from outer scope (line 85) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:429:18: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:433:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:434:8: W0632: Possible unbalanced tuple unpacking with sequence defined at line 169: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:434:21: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:436:12: W0719: Raising too general exception: Exception (broad-exception-raised) tools/testing/selftests/net/bpf_offload.py:439:13: W3601: Suspicious 2-part chained comparison using semantically incompatible operators ('!=' and 'in') (bad-chained-comparison) tools/testing/selftests/net/bpf_offload.py:440:13: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:444:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:445:11: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:447:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:448:11: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:450:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:455:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:460:8: W0621: Redefining name 'args' from outer scope (line 696) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:461:11: W0621: Redefining name 'out' from outer scope (line 720) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:469:12: W0621: Redefining name 'fltr' from outer scope (line 790) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:460:15: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:461:8: W0632: Possible unbalanced tuple unpacking with sequence defined at line 169: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:482:17: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:486:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:486:4: R0913: Too many arguments (10/5) (too-many-arguments) tools/testing/selftests/net/bpf_offload.py:486:4: R0917: Too many positional arguments (10/5) (too-many-positional-arguments) tools/testing/selftests/net/bpf_offload.py:488:22: W0621: Redefining name 'fail' from outer scope (line 85) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:491:20: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:493:20: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:495:20: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:497:18: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:502:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:502:4: R0913: Too many arguments (12/5) (too-many-arguments) tools/testing/selftests/net/bpf_offload.py:502:4: R0917: Too many positional arguments (12/5) (too-many-positional-arguments) tools/testing/selftests/net/bpf_offload.py:505:27: W0621: Redefining name 'fail' from outer scope (line 85) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:522:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:522:46: W0621: Redefining name 'fail' from outer scope (line 85) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:523:8: W0621: Redefining name 'args' from outer scope (line 696) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:523:15: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:527:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:534:8: W0621: Redefining name 'ns' from outer scope (line 744) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:528:4: W0602: Using global for 'devs' but no assignment is done (global-variable-not-assigned) tools/testing/selftests/net/bpf_offload.py:533:12: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:535:12: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:539:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:540:4: W0621: Redefining name 'progs' from outer scope (line 708) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:541:4: W0621: Redefining name 'prog' from outer scope (line 878) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:542:12: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:547:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:548:4: W0621: Redefining name 'maps' from outer scope (line 1161) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:549:4: W0621: Redefining name 'm' from outer scope (line 1164) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:550:12: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:555:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:555:27: W0621: Redefining name 'prog_file' from outer scope (line 1145) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:555:43: W0621: Redefining name 'map_file' from outer scope (line 1146) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:558:4: W0621: Redefining name 'ret' from outer scope (line 708) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:558:9: W0621: Redefining name 'err' from outer scope (line 736) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:558:4: W0632: Possible unbalanced tuple unpacking with sequence defined at line 169: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:558:23: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:562:4: W0632: Possible unbalanced tuple unpacking with sequence defined at line 169: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:562:23: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:565:9: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:568:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:568:29: W0621: Redefining name 'ns' from outer scope (line 744) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:568:33: W0621: Redefining name 'prog_file' from outer scope (line 1145) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:568:49: W0621: Redefining name 'map_file' from outer scope (line 1146) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:569:4: W0621: Redefining name 'progs' from outer scope (line 708) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:570:4: W0621: Redefining name 'prog' from outer scope (line 878) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:585:4: W0621: Redefining name 'maps' from outer scope (line 1161) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:586:8: W0621: Redefining name 'm' from outer scope (line 1164) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:581:13: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:568:33: W0613: Unused argument 'prog_file' (unused-argument) tools/testing/selftests/net/bpf_offload.py:568:49: W0613: Unused argument 'map_file' (unused-argument) tools/testing/selftests/net/bpf_offload.py:568:64: W0613: Unused argument 'removed' (unused-argument) tools/testing/selftests/net/bpf_offload.py:590:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:590:36: W0621: Redefining name 'args' from outer scope (line 696) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:590:36: W0613: Unused argument 'args' (unused-argument) tools/testing/selftests/net/bpf_offload.py:597:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:597:41: W0621: Redefining name 'args' from outer scope (line 696) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:600:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:603:9: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:605:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:612:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:621:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:621:24: W0621: Redefining name 'sim' from outer scope (line 755) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:621:29: W0621: Redefining name 'obj' from outer scope (line 750) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:632:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/net/bpf_offload.py:632:20: W0621: Redefining name 'simdev' from outer scope (line 754) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:632:28: W0621: Redefining name 'sim' from outer scope (line 755) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:632:33: W0621: Redefining name 'obj' from outer scope (line 750) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:654:4: W0621: Redefining name 'ret' from outer scope (line 708) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:654:12: W0621: Redefining name 'err' from outer scope (line 736) (redefined-outer-name) tools/testing/selftests/net/bpf_offload.py:633:15: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:689:4: W0632: Possible unbalanced tuple unpacking with sequence defined at line 85 of lib.py.nsim: left side has 1 label, right side has 0 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:698:14: W1514: Using open without explicitly specifying an encoding (unspecified-encoding) tools/testing/selftests/net/bpf_offload.py:708:0: W0632: Possible unbalanced tuple unpacking with sequence defined at line 169: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:711:0: W0632: Possible unbalanced tuple unpacking with sequence defined at line 169: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:731:19: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:732:19: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:741:4: C0103: Constant name "skip_extack" doesn't conform to UPPER_CASE naming style (invalid-name) tools/testing/selftests/net/bpf_offload.py:746:4: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:751:4: C0103: Constant name "bytecode" doesn't conform to UPPER_CASE naming style (invalid-name) tools/testing/selftests/net/bpf_offload.py:755:4: W0632: Possible unbalanced tuple unpacking with sequence defined at line 85 of lib.py.nsim: left side has 1 label, right side has 0 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:761:4: W0632: Possible unbalanced tuple unpacking with sequence defined at line 85 of lib.py.nsim: left side has 1 label, right side has 0 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:842:17: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:913:4: W0632: Possible unbalanced tuple unpacking with sequence defined at line 85 of lib.py.nsim: left side has 1 label, right side has 0 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:922:4: W0632: Possible unbalanced tuple unpacking with sequence defined at line 85 of lib.py.nsim: left side has 1 label, right side has 0 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:971:4: C0103: Constant name "nooffload" doesn't conform to UPPER_CASE naming style (invalid-name) tools/testing/selftests/net/bpf_offload.py:981:4: C0103: Constant name "offload" doesn't conform to UPPER_CASE naming style (invalid-name) tools/testing/selftests/net/bpf_offload.py:990:4: C0103: Constant name "devbound" doesn't conform to UPPER_CASE naming style (invalid-name) tools/testing/selftests/net/bpf_offload.py:1036:4: W0632: Possible unbalanced tuple unpacking with sequence defined at line 85 of lib.py.nsim: left side has 1 label, right side has 0 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:1100:4: C0103: Constant name "delay_msec" doesn't conform to UPPER_CASE naming style (invalid-name) tools/testing/selftests/net/bpf_offload.py:1103:15: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1111:4: W0632: Possible unbalanced tuple unpacking with sequence defined at line 137: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:1113:16: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1116:4: C0103: Constant name "delay_sec" doesn't conform to UPPER_CASE naming style (invalid-name) tools/testing/selftests/net/bpf_offload.py:1117:32: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1125:4: W0632: Possible unbalanced tuple unpacking with sequence defined at line 85 of lib.py.nsim: left side has 1 label, right side has 0 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:1157:4: W0632: Possible unbalanced tuple unpacking with sequence defined at line 85 of lib.py.nsim: left side has 1 label, right side has 0 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:1166:20: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1170:8: W0632: Possible unbalanced tuple unpacking with sequence defined at line 169: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:1170:25: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1178:20: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1182:8: W0632: Possible unbalanced tuple unpacking with sequence defined at line 169: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:1182:27: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1187:13: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1192:12: W0632: Possible unbalanced tuple unpacking with sequence defined at line 169: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:1192:31: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1197:13: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1201:8: W0632: Possible unbalanced tuple unpacking with sequence defined at line 169: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:1201:29: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1204:27: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1206:31: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1210:8: W0632: Possible unbalanced tuple unpacking with sequence defined at line 169: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:1210:27: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1212:23: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1213:8: W0632: Possible unbalanced tuple unpacking with sequence defined at line 169: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:1213:27: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1216:23: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1217:8: W0632: Possible unbalanced tuple unpacking with sequence defined at line 169: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:1217:27: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1221:13: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1225:16: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1229:8: W0632: Possible unbalanced tuple unpacking with sequence defined at line 169: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:1229:27: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1233:13: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1241:4: W0632: Possible unbalanced tuple unpacking with sequence defined at line 85 of lib.py.nsim: left side has 1 label, right side has 0 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:1248:4: W0632: Possible unbalanced tuple unpacking with sequence defined at line 85 of lib.py.nsim: left side has 1 label, right side has 0 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:1258:4: W0632: Possible unbalanced tuple unpacking with sequence defined at line 85 of lib.py.nsim: left side has 1 label, right side has 0 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:1260:4: W0632: Possible unbalanced tuple unpacking with sequence defined at line 85 of lib.py.nsim: left side has 3 labels, right side has 0 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:1266:4: C0103: Constant name "progA" doesn't conform to UPPER_CASE naming style (invalid-name) tools/testing/selftests/net/bpf_offload.py:1269:4: C0103: Constant name "progB" doesn't conform to UPPER_CASE naming style (invalid-name) tools/testing/selftests/net/bpf_offload.py:1298:19: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1299:19: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1301:4: W0632: Possible unbalanced tuple unpacking with sequence defined at line 169: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:1303:37: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1310:42: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1318:42: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1330:22: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1336:22: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1341:22: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1349:4: W0632: Possible unbalanced tuple unpacking with sequence defined at line 169: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking) tools/testing/selftests/net/bpf_offload.py:1349:23: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:1352:10: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/net/bpf_offload.py:698:14: R1732: Consider using 'with' for resource-allocating operations (consider-using-with) tools/testing/selftests/net/bpf_offload.py:19:0: W0611: Unused import errno (unused-import) tools/testing/selftests/net/bpf_offload.py:24:0: W0611: Unused import re (unused-import) ------------------------------------------------------------------ Your code has been rated at 6.53/10 (previous run: 6.53/10, +0.00)