aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/if_link.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/uapi/linux/if_link.h b/include/uapi/linux/if_link.h
index 9a7f7ace6649..622e7910b8cc 100644
--- a/include/uapi/linux/if_link.h
+++ b/include/uapi/linux/if_link.h
@@ -399,9 +399,10 @@ enum {
399 IFLA_VF_UNSPEC, 399 IFLA_VF_UNSPEC,
400 IFLA_VF_MAC, /* Hardware queue specific attributes */ 400 IFLA_VF_MAC, /* Hardware queue specific attributes */
401 IFLA_VF_VLAN, 401 IFLA_VF_VLAN,
402 IFLA_VF_TX_RATE, /* TX Bandwidth Allocation */ 402 IFLA_VF_TX_RATE, /* Max TX Bandwidth Allocation */
403 IFLA_VF_SPOOFCHK, /* Spoof Checking on/off switch */ 403 IFLA_VF_SPOOFCHK, /* Spoof Checking on/off switch */
404 IFLA_VF_LINK_STATE, /* link state enable/disable/auto switch */ 404 IFLA_VF_LINK_STATE, /* link state enable/disable/auto switch */
405 IFLA_VF_RATE, /* Min and Max TX Bandwidth Allocation */
405 __IFLA_VF_MAX, 406 __IFLA_VF_MAX,
406}; 407};
407 408
@@ -423,6 +424,12 @@ struct ifla_vf_tx_rate {
423 __u32 rate; /* Max TX bandwidth in Mbps, 0 disables throttling */ 424 __u32 rate; /* Max TX bandwidth in Mbps, 0 disables throttling */
424}; 425};
425 426
427struct ifla_vf_rate {
428 __u32 vf;
429 __u32 min_tx_rate; /* Min Bandwidth in Mbps */
430 __u32 max_tx_rate; /* Max Bandwidth in Mbps */
431};
432
426struct ifla_vf_spoofchk { 433struct ifla_vf_spoofchk {
427 __u32 vf; 434 __u32 vf;
428 __u32 setting; 435 __u32 setting;