vsock: add SPDX-License-Identifier in each file

Harsha specified `license = "Apache-2.0 OR BSD-3-Clause"` in
vsock/Cargo.toml, so let's add a properly SPDX tag in the
vsock files.

Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
This commit is contained in:
Stefano Garzarella 2022-09-28 13:34:37 +02:00
parent df1073bf2e
commit 8fa597e941
8 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 or BSD-3-Clause
mod rxops;
mod rxqueue;
mod thread_backend;

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 or BSD-3-Clause
#[derive(Clone, Copy, Eq, PartialEq, Debug)]
pub enum RxOps {
/// VSOCK_OP_REQUEST

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 or BSD-3-Clause
use super::rxops::RxOps;
#[derive(Debug, Eq, PartialEq)]

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 or BSD-3-Clause
#![deny(missing_docs)]
use super::{

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 or BSD-3-Clause
use super::vhu_vsock::{Error, Result, CONN_TX_BUF_SIZE};
use std::{io::Write, num::Wrapping};
use vm_memory::{bitmap::BitmapSlice, VolatileSlice};

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 or BSD-3-Clause
use super::vhu_vsock_thread::*;
use clap::Parser;
use core::slice;

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 or BSD-3-Clause
use super::{
rxops::*,
thread_backend::*,

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 or BSD-3-Clause
use super::{
rxops::*,
rxqueue::*,