History

virtio_net: Split struct virtio_net_rss_config

struct virtio_net_rss_config was less useful in actual code because of a flexible array placed in the middle. Add new structures that split it into two to avoid having a flexible array in the middle.

Akihiko Odaki committed 1 year ago

Commit 976c2691 parent b2d1e4c1 file · +13 −0Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/linux/virtio_net.h+13−0
@@ -327,6 +327,19 @@ struct virtio_net_rss_config { · 326 unmodified lines
327 __u8 hash_key_data[/* hash_key_length */];327 __u8 hash_key_data[/* hash_key_length */];
328};328};
329 329
330struct virtio_net_rss_config_hdr {
331 __le32 hash_types;
332 __le16 indirection_table_mask;
333 __le16 unclassified_queue;
334 __le16 indirection_table[/* 1 + indirection_table_mask */];
335};
336
337struct virtio_net_rss_config_trailer {
338 __le16 max_tx_vq;
339 __u8 hash_key_length;
340 __u8 hash_key_data[/* hash_key_length */];
341};
342
330 #define VIRTIO_NET_CTRL_MQ_RSS_CONFIG 1343 #define VIRTIO_NET_CTRL_MQ_RSS_CONFIG 1
331 344
332/*345/*