Skip to content

Commit

Permalink
lib/virtio: add virtio-crypto spec
Browse files Browse the repository at this point in the history
Add virtio-crypto specification.

Signed-off-by: Anoob Joseph <[email protected]>
Signed-off-by: Gowrishankar Muthukrishnan <[email protected]>
Signed-off-by: Akhil Goyal <[email protected]>
Change-Id: Ie00620dc12deb28882349fa974002d907e851ff0
Reviewed-on: https://sj1git1.cavium.com/c/IP/SW/dataplane/dpu-offload/+/136617
Tested-by: sa_ip-toolkits-Jenkins <[email protected]>
Reviewed-by: Ashwin Sekhar T K <[email protected]>
Reviewed-by: Jerin Jacob <[email protected]>
  • Loading branch information
gmuthukrishn authored and jerinjacobk committed Oct 17, 2024
1 parent 3885efa commit 47b5202
Show file tree
Hide file tree
Showing 5 changed files with 545 additions and 0 deletions.
24 changes: 24 additions & 0 deletions ci/checkpatch/run_license_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ IGNORE_DIRECTORIES=(
".github/"
)

BSD_LICENSE_FILES=(
"lib/virtio/spec/virtio_crypto.h"
)

FAILED=""
IGNORED=""
FILES=$(git ls-files)
Expand Down Expand Up @@ -103,6 +107,26 @@ for F in $FILES; do
continue
fi

CHECK_BSD=""
for B in "${BSD_LICENSE_FILES[@]}"; do
if [[ $B == $F ]]; then
CHECK_BSD="1"
break
fi
done

if [[ $CHECK_BSD == "1" ]]; then
# BSD-3 License Check
grep ' SPDX-License-Identifier: BSD-3-Clause$' $F &> /dev/null
C1=$?
grep ' Copyright (c) 202[[:digit:]] Marvell.$' $F &> /dev/null
C2=$?
if [[ $C1 == "0" ]] || [[ $C2 == "0" ]]; then
echo -n " ... OK"
continue
fi
fi

FAILED+="$F\n"
echo -n " ... FAIL"
done
Expand Down
1 change: 1 addition & 0 deletions lib/virtio/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ headers = files(

spec_headers = files(
'spec/virtio.h',
'spec/virtio_crypto.h',
'spec/virtio_net.h',
)

Expand Down
Loading

0 comments on commit 47b5202

Please sign in to comment.