mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
This attribute advertises the min value of virtqueue size. The value is 1 by default. Signed-off-by: Wu Zongyong <wuzongyong@linux.alibaba.com> Link: https://lore.kernel.org/r/2bbc417355c4d22298050b1ba887cecfbde3e85d.1635493219.git.wuzongyong@linux.alibaba.com Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
42 lines
1015 B
C
42 lines
1015 B
C
/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
|
|
/*
|
|
* vdpa device management interface
|
|
* Copyright (c) 2020 Mellanox Technologies Ltd. All rights reserved.
|
|
*/
|
|
|
|
#ifndef _UAPI_LINUX_VDPA_H_
|
|
#define _UAPI_LINUX_VDPA_H_
|
|
|
|
#define VDPA_GENL_NAME "vdpa"
|
|
#define VDPA_GENL_VERSION 0x1
|
|
|
|
enum vdpa_command {
|
|
VDPA_CMD_UNSPEC,
|
|
VDPA_CMD_MGMTDEV_NEW,
|
|
VDPA_CMD_MGMTDEV_GET, /* can dump */
|
|
VDPA_CMD_DEV_NEW,
|
|
VDPA_CMD_DEV_DEL,
|
|
VDPA_CMD_DEV_GET, /* can dump */
|
|
};
|
|
|
|
enum vdpa_attr {
|
|
VDPA_ATTR_UNSPEC,
|
|
|
|
/* bus name (optional) + dev name together make the parent device handle */
|
|
VDPA_ATTR_MGMTDEV_BUS_NAME, /* string */
|
|
VDPA_ATTR_MGMTDEV_DEV_NAME, /* string */
|
|
VDPA_ATTR_MGMTDEV_SUPPORTED_CLASSES, /* u64 */
|
|
|
|
VDPA_ATTR_DEV_NAME, /* string */
|
|
VDPA_ATTR_DEV_ID, /* u32 */
|
|
VDPA_ATTR_DEV_VENDOR_ID, /* u32 */
|
|
VDPA_ATTR_DEV_MAX_VQS, /* u32 */
|
|
VDPA_ATTR_DEV_MAX_VQ_SIZE, /* u16 */
|
|
VDPA_ATTR_DEV_MIN_VQ_SIZE, /* u16 */
|
|
|
|
/* new attributes must be added above here */
|
|
VDPA_ATTR_MAX,
|
|
};
|
|
|
|
#endif
|