summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
diff options
context:
space:
mode:
authorGanesh Goudar2017-06-05 15:04:20 +0200
committerDavid S. Miller2017-06-06 21:17:10 +0200
commit8ea4fae926afd81f4d7fd43444562afc8629f77c (patch)
tree7976079ba3dab5a9fc6be828e53a93006ba0790f /drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
parentppp: mppe: Use vsnprintf extension %phN (diff)
downloadkernel-qcow2-linux-8ea4fae926afd81f4d7fd43444562afc8629f77c.tar.gz
kernel-qcow2-linux-8ea4fae926afd81f4d7fd43444562afc8629f77c.tar.xz
kernel-qcow2-linux-8ea4fae926afd81f4d7fd43444562afc8629f77c.zip
cxgb4: implement ndo_set_vf_rate()
Implement ndo_set_vf_rate() for mgmt interface to support rate-limiting of VF traffic using 'ip' command. Based on the original work of Kumar Sanghvi <kumaras@chelsio.com> Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4/cxgb4.h')
-rw-r--r--drivers/net/ethernet/chelsio/cxgb4/cxgb4.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h b/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
index 1cf3e2f89fc1..b7a92ebab3cf 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
+++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
@@ -777,6 +777,7 @@ struct uld_msix_info {
struct vf_info {
unsigned char vf_mac_addr[ETH_ALEN];
+ unsigned int tx_rate;
bool pf_set_mac;
};