diff options
author | Andrew Melnychenko <andrew@daynix.com> | 2021-05-14 14:48:30 +0300 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2021-06-04 15:25:46 +0800 |
commit | 8f364e344c3e71d4cc4e683d21241f6c36d62a5e (patch) | |
tree | 5ba18bb9310ff32504c4d5bcb48e4c6e2136c698 /include/net | |
parent | 78258debe03c6034365884cbfb05679d6938aaac (diff) | |
download | qemu-8f364e344c3e71d4cc4e683d21241f6c36d62a5e.zip qemu-8f364e344c3e71d4cc4e683d21241f6c36d62a5e.tar.gz qemu-8f364e344c3e71d4cc4e683d21241f6c36d62a5e.tar.bz2 |
net: Added SetSteeringEBPF method for NetClientState.
For now, that method supported only by Linux TAP.
Linux TAP uses TUNSETSTEERINGEBPF ioctl.
Signed-off-by: Andrew Melnychenko <andrew@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/net.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/net.h b/include/net/net.h index 1ef536d..5d15080 100644 --- a/include/net/net.h +++ b/include/net/net.h @@ -61,6 +61,7 @@ typedef int (SetVnetBE)(NetClientState *, bool); typedef struct SocketReadState SocketReadState; typedef void (SocketReadStateFinalize)(SocketReadState *rs); typedef void (NetAnnounce)(NetClientState *); +typedef bool (SetSteeringEBPF)(NetClientState *, int); typedef struct NetClientInfo { NetClientDriver type; @@ -82,6 +83,7 @@ typedef struct NetClientInfo { SetVnetLE *set_vnet_le; SetVnetBE *set_vnet_be; NetAnnounce *announce; + SetSteeringEBPF *set_steering_ebpf; } NetClientInfo; struct NetClientState { |