Code should not use DPDK experimental API, and comments or docs should not have a reason to mention it either.
It is sort of allowed on dpdk-latest, but people sending or reviewing patches should not take those lightly either, so the error should still be fine there. This patch triggers the error on itself, which is also fine, as it is, ideally, the last patch to do so. Signed-off-by: Ilya Maximets <[email protected]> --- utilities/checkpatch.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utilities/checkpatch.py b/utilities/checkpatch.py index b1b6cdfd5..a2f3ddceb 100755 --- a/utilities/checkpatch.py +++ b/utilities/checkpatch.py @@ -637,6 +637,10 @@ checks = [ {'regex': 'AUTHORS.rst$', 'match_name': None, 'check': lambda x: update_missing_authors(x), 'print': None}, + + {'regex': None, 'match_name': None, + 'check': lambda x: 'ALLOW_EXPERIMENTAL_API' in x, + 'print': lambda: print_error("DPDK Experimental API is not allowed")}, ] -- 2.54.0 _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
