linux/drivers/net/ethernet/intel/i40e
Sucheta Chakraborty ed616689a3 net-next:v4: Add support to configure SR-IOV VF minimum and maximum Tx rate through ip tool.
o min_tx_rate puts lower limit on the VF bandwidth. VF is guaranteed
  to have a bandwidth of at least this value.
  max_tx_rate puts cap on the VF bandwidth. VF can have a bandwidth
  of up to this value.

o A new handler set_vf_rate for attr IFLA_VF_RATE has been introduced
  which takes 4 arguments:
  netdev, VF number, min_tx_rate, max_tx_rate

o ndo_set_vf_rate replaces ndo_set_vf_tx_rate handler.

o Drivers that currently implement ndo_set_vf_tx_rate should now call
  ndo_set_vf_rate instead and reject attempt to set a minimum bandwidth
  greater than 0 for IFLA_VF_TX_RATE when IFLA_VF_RATE is not yet
  implemented by driver.

o If user enters only one of either min_tx_rate or max_tx_rate, then,
  userland should read back the other value from driver and set both
  for IFLA_VF_RATE.
  Drivers that have not yet implemented IFLA_VF_RATE should always
  return min_tx_rate as 0 when read from ip tool.

o If both IFLA_VF_TX_RATE and IFLA_VF_RATE options are specified, then
  IFLA_VF_RATE should override.

o Idea is to have consistent display of rate values to user.

o Usage example: -

  ./ip link set p4p1 vf 0 rate 900

  ./ip link show p4p1
  32: p4p1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode
  DEFAULT qlen 1000
    link/ether 00:0e:1e:08:b0:f0 brd ff:ff:ff:ff:ff:ff
    vf 0 MAC 3e:a0:ca:bd:ae:5a, tx rate 900 (Mbps), max_tx_rate 900Mbps
    vf 1 MAC f6:c6:7c:3f:3d:6c
    vf 2 MAC 56:32:43:98:d7:71
    vf 3 MAC d6:be:c3:b5:85:ff
    vf 4 MAC ee:a9:9a:1e:19:14
    vf 5 MAC 4a:d0:4c:07:52:18
    vf 6 MAC 3a:76:44:93:62:f9
    vf 7 MAC 82:e9:e7:e3:15:1a

  ./ip link set p4p1 vf 0 max_tx_rate 300 min_tx_rate 200

  ./ip link show p4p1
  32: p4p1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode
  DEFAULT qlen 1000
    link/ether 00:0e:1e:08:b0:f0 brd ff:ff:ff:ff:ff:ff
    vf 0 MAC 3e:a0:ca:bd:ae:5a, tx rate 300 (Mbps), max_tx_rate 300Mbps,
    min_tx_rate 200Mbps
    vf 1 MAC f6:c6:7c:3f:3d:6c
    vf 2 MAC 56:32:43:98:d7:71
    vf 3 MAC d6:be:c3:b5:85:ff
    vf 4 MAC ee:a9:9a:1e:19:14
    vf 5 MAC 4a:d0:4c:07:52:18
    vf 6 MAC 3a:76:44:93:62:f9
    vf 7 MAC 82:e9:e7:e3:15:1a

  ./ip link set p4p1 vf 0 max_tx_rate 600 rate 300

  ./ip link show p4p1
  32: p4p1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode
  DEFAULT qlen 1000
    link/ether 00:0e:1e:08:b0:f brd ff:ff:ff:ff:ff:ff
    vf 0 MAC 3e:a0:ca:bd:ae:5, tx rate 600 (Mbps), max_tx_rate 600Mbps,
    min_tx_rate 200Mbps
    vf 1 MAC f6:c6:7c:3f:3d:6c
    vf 2 MAC 56:32:43:98:d7:71
    vf 3 MAC d6:be:c3:b5:85:ff
    vf 4 MAC ee:a9:9a:1e:19:14
    vf 5 MAC 4a:d0:4c:07:52:18
    vf 6 MAC 3a:76:44:93:62:f9
    vf 7 MAC 82:e9:e7:e3:15:1a

Signed-off-by: Sucheta Chakraborty <sucheta.chakraborty@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-05-23 15:04:02 -04:00
..
i40e_adminq_cmd.h i40e/i40evf: update AdminQ API 2014-04-22 03:10:50 -07:00
i40e_adminq.c i40e/i40evf: add tracking to NVM busy state 2014-04-21 21:26:52 -07:00
i40e_adminq.h i40e/i40evf: add tracking to NVM busy state 2014-04-21 21:26:52 -07:00
i40e_alloc.h i40e: Fix GPL header 2014-01-09 02:10:23 -08:00
i40e_common.c i40e/i40evf: Retrieve and store missing link config information 2014-04-28 05:58:57 -07:00
i40e_dcb_nl.c i40e: add DCB and DCBNL support 2014-01-17 19:13:04 -08:00
i40e_dcb.c i40e: Fix static checker warning 2014-03-06 18:41:50 -08:00
i40e_dcb.h i40e: implement DCB support infastructure 2014-01-17 19:13:04 -08:00
i40e_debugfs.c i40e: Do not expose fd-sb commands from debugfs 2014-04-28 05:43:44 -07:00
i40e_diag.c i40e: Fix GPL header 2014-01-09 02:10:23 -08:00
i40e_diag.h i40e: Fix GPL header 2014-01-09 02:10:23 -08:00
i40e_ethtool.c i40e: remove Tx work for ptp 2014-05-21 03:45:22 -07:00
i40e_hmc.c i40e: use assignment instead of memcpy 2014-01-10 16:30:31 -08:00
i40e_hmc.h i40e: Cleanup Doxygen warnings 2014-01-10 16:30:33 -08:00
i40e_lan_hmc.c i40e/i40evf: unhide and enable to one prefena field 2014-04-21 20:35:42 -07:00
i40e_lan_hmc.h i40e/i40evf: unhide and enable to one prefena field 2014-04-21 20:35:42 -07:00
i40e_main.c net-next:v4: Add support to configure SR-IOV VF minimum and maximum Tx rate through ip tool. 2014-05-23 15:04:02 -04:00
i40e_nvm.c e1000e/igb/ixgbe/i40e: fix message terminations 2014-04-18 18:41:24 -07:00
i40e_osdep.h i40e: Fix GPL header 2014-01-09 02:10:23 -08:00
i40e_prototype.h i40e: Update function formal parameters 2014-04-28 05:51:34 -07:00
i40e_ptp.c i40e: remove Tx work for ptp 2014-05-21 03:45:22 -07:00
i40e_register.h i40e: Fix GPL header 2014-01-09 02:10:23 -08:00
i40e_status.h i40e: Fix GPL header 2014-01-09 02:10:23 -08:00
i40e_txrx.c i40e: add required include 2014-05-21 02:03:18 -07:00
i40e_txrx.h i40e: enable PTP 2014-01-10 16:33:39 -08:00
i40e_type.h i40e/i40evf: Retrieve and store missing link config information 2014-04-28 05:58:57 -07:00
i40e_virtchnl_pf.c net-next:v4: Add support to configure SR-IOV VF minimum and maximum Tx rate through ip tool. 2014-05-23 15:04:02 -04:00
i40e_virtchnl_pf.h net-next:v4: Add support to configure SR-IOV VF minimum and maximum Tx rate through ip tool. 2014-05-23 15:04:02 -04:00
i40e_virtchnl.h i40e: Fix GPL header 2014-01-09 02:10:23 -08:00
i40e.h i40e: add required include 2014-05-21 02:03:18 -07:00
Makefile i40e: add DCB option to Kconfig 2014-01-17 19:13:04 -08:00