Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SPDX to generated source/header files #453

Merged
merged 1 commit into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .reuse/dep5
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@ Files:
*meson.build
proto/dpdk.proto
meson_options.txt
include/dp_conf_opts.h
include/dp_version.h.in
src/dp_conf_opts.c
tools/dump/opts.c
tools/dump/opts.h
Copyright: 2023 SAP SE or an SAP affiliate company and IronCore contributors
License: Apache-2.0

Expand Down
1 change: 0 additions & 1 deletion docs/deployment/help_dpservice-dump.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
| --drops | None | show dropped packets | |
| --nodes | REGEX | show graph node traversal, limit to REGEX-matched nodes (empty string for all) | |
| --filter | FILTER | show only packets matching a pcap-style FILTER | |
| --hw | None | capture offloaded packets (only outgoing VF->PF packets supported) | |
| --pcap | FILE | write packets into a PCAP file | |
| --stop | None | do nothing, only make sure tracing is disabled in dp-service | |

Expand Down
7 changes: 7 additions & 0 deletions hack/dp_conf_generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,11 @@ def generate_md(options):
print("")


def print_license():
print("// SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and IronCore contributors")
print("// SPDX-License-Identifier: Apache-2.0")
print("")

def print_warning():
print("/***********************************************************************/")
print("/* DO NOT EDIT THIS FILE */")
Expand Down Expand Up @@ -360,11 +365,13 @@ def print_warning():

with open(source, "w") as outfile:
sys.stdout = outfile
print_license()
print_warning()
generate_c(options)

with open(header, "w") as outfile:
sys.stdout = outfile
print_license()
print_warning()
generate_h(options)

Expand Down
3 changes: 3 additions & 0 deletions include/dp_conf_opts.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and IronCore contributors
// SPDX-License-Identifier: Apache-2.0

/***********************************************************************/
/* DO NOT EDIT THIS FILE */
/* */
Expand Down
3 changes: 3 additions & 0 deletions src/dp_conf_opts.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and IronCore contributors
// SPDX-License-Identifier: Apache-2.0

/***********************************************************************/
/* DO NOT EDIT THIS FILE */
/* */
Expand Down
4 changes: 3 additions & 1 deletion tools/dump/opts.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and IronCore contributors
// SPDX-License-Identifier: Apache-2.0

/***********************************************************************/
/* DO NOT EDIT THIS FILE */
/* */
Expand Down Expand Up @@ -65,7 +68,6 @@ static inline void dp_argparse_help(const char *progname, FILE *outfile)
" --drops show dropped packets\n"
" --nodes=REGEX show graph node traversal, limit to REGEX-matched nodes (empty string for all)\n"
" --filter=FILTER show only packets matching a pcap-style FILTER\n"
" --hw capture offloaded packets (only outgoing VF->PF packets supported)\n"
" --pcap=FILE write packets into a PCAP file\n"
" --stop do nothing, only make sure tracing is disabled in dp-service\n"
, progname);
Expand Down
4 changes: 3 additions & 1 deletion tools/dump/opts.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and IronCore contributors
// SPDX-License-Identifier: Apache-2.0

/***********************************************************************/
/* DO NOT EDIT THIS FILE */
/* */
Expand All @@ -6,7 +9,6 @@
/***********************************************************************/

bool dp_conf_is_showing_drops(void);
bool dp_conf_is_offload_enabled(void);
bool dp_conf_is_stop_mode(void);

enum dp_conf_runmode {
Expand Down
Loading