summaryrefslogtreecommitdiff
path: root/src/util/virnetdev.h
diff options
context:
space:
mode:
authorMoshe Levi <moshele@mellanox.com>2015-07-19 13:11:07 +0300
committerJohn Ferlan <jferlan@redhat.com>2015-07-21 07:08:35 -0400
commitac3ed2085fcbeecaf5aa347c0b1bffaf94fff293 (patch)
tree36d509cb88e458a2ee635376ecd017b8395e3b2e /src/util/virnetdev.h
parente46791e003444ce825feaf5bb2a16f778ee951e5 (diff)
downloadlibvirt-ac3ed2085fcbeecaf5aa347c0b1bffaf94fff293.tar.gz
nodedev: add RDMA and tx-udp_tnl-segmentation NIC capabilities
Adding functionality to libvirt that will allow it query the interface for the availability of RDMA and tx-udp_tnl-segmentation Offloading NIC capabilities Here is an example of the feature XML definition: <device> <name>net_eth4_90_e2_ba_5e_a5_45</name> <path>/sys/devices/pci0000:00/0000:00:03.0/0000:08:00.1/net/eth4</path> <parent>pci_0000_08_00_1</parent> <capability type='net'> <interface>eth4</interface> <address>90:e2:ba:5e:a5:45</address> <link speed='10000' state='up'/> <feature name='rx'/> <feature name='tx'/> <feature name='sg'/> <feature name='tso'/> <feature name='gso'/> <feature name='gro'/> <feature name='rxvlan'/> <feature name='txvlan'/> <feature name='rxhash'/> <feature name='rdma'/> <feature name='txudptnl'/> <capability type='80203'/> </capability> </device>
Diffstat (limited to 'src/util/virnetdev.h')
-rw-r--r--src/util/virnetdev.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/virnetdev.h b/src/util/virnetdev.h
index 190b70e954..fff881ceec 100644
--- a/src/util/virnetdev.h
+++ b/src/util/virnetdev.h
@@ -210,6 +210,7 @@ int virNetDevGetRcvAllMulti(const char *ifname, bool *receive)
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_RETURN_CHECK;
# define SYSFS_NET_DIR "/sys/class/net/"
+# define SYSFS_INFINIBAND_DIR "/sys/class/infiniband/"
int virNetDevSysfsFile(char **pf_sysfs_device_link,
const char *ifname,
const char *file)