summaryrefslogtreecommitdiffstats
path: root/src/vnet/dev/dev.h
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2023-11-08 19:12:27 +0000
committerDamjan Marion <damarion@cisco.com>2023-11-13 12:21:45 +0000
commite596ca1b51d25c24bd06132f9824d4bd0c6a5ecc (patch)
tree9d44c3ede674ef6f8822328117a2561ec10c1f1d /src/vnet/dev/dev.h
parent64d6463d2eac0c0fe434f3a7aa56fe4d85c046d9 (diff)
dev: add change_max_rx_frame_size capability
Type: improvement Change-Id: I922e216818b78f2fe7689c21a1d27d74a0ae28b8 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/dev/dev.h')
-rw-r--r--src/vnet/dev/dev.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/vnet/dev/dev.h b/src/vnet/dev/dev.h
index dc426667058..e3421b91978 100644
--- a/src/vnet/dev/dev.h
+++ b/src/vnet/dev/dev.h
@@ -28,7 +28,8 @@ typedef enum
#define foreach_vnet_dev_port_caps \
_ (interrupt_mode) \
- _ (rss)
+ _ (rss) \
+ _ (change_max_rx_frame_size)
typedef union
{
@@ -107,7 +108,7 @@ typedef struct
#define foreach_vnet_dev_port_cfg_type \
_ (PROMISC_MODE) \
- _ (MAX_FRAME_SIZE) \
+ _ (MAX_RX_FRAME_SIZE) \
_ (CHANGE_PRIMARY_HW_ADDR) \
_ (ADD_SECONDARY_HW_ADDR) \
_ (REMOVE_SECONDARY_HW_ADDR) \
@@ -132,7 +133,7 @@ typedef struct vnet_dev_port_cfg_change_req
{
u8 promisc : 1;
vnet_dev_hw_addr_t addr;
- u16 max_frame_size;
+ u16 max_rx_frame_size;
vnet_dev_queue_id_t queue_id;
};
@@ -143,7 +144,7 @@ typedef struct
vnet_dev_hw_addr_t hw_addr;
u16 max_rx_queues;
u16 max_tx_queues;
- u16 max_supported_frame_size;
+ u16 max_supported_rx_frame_size;
vnet_dev_port_type_t type;
vnet_dev_port_caps_t caps;
} vnet_dev_port_attr_t;
@@ -278,7 +279,7 @@ typedef struct vnet_dev_port
vnet_dev_queue_config_t rx_queue_config;
vnet_dev_queue_config_t tx_queue_config;
vnet_dev_port_attr_t attr;
- u32 max_frame_size;
+ u32 max_rx_frame_size;
vnet_dev_hw_addr_t primary_hw_addr;
vnet_dev_hw_addr_t *secondary_hw_addr;
u32 index;