i40e: Implement configfs for NPAR BW configuration
authorGreg Rose <gregory.v.rose@intel.com>
Fri, 6 Feb 2015 08:52:13 +0000 (08:52 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 25 Feb 2015 05:42:40 +0000 (21:42 -0800)
commit96664483a38d25b37de8911e2058b1d10af3d113
tree66ef8ada970263d967d2c042e468ba203c2517a2
parentf4492db16df8a027cebc209c3905cbe421b53d3a
i40e: Implement configfs for NPAR BW configuration

Add configfs controls to get, set and commit NPAR BW configurations.

We export three controls:
min_bw - Can take a value from 0 to 100 inclusive
max_bw - Can take a value from 1 to 100 inclusive
commit - A write-only control that accepts only a value of 1 and will
cause the BW settings to be permanently committed to NVM so
that they are persistent across power cycles and system
resets

The BW values are relative and are expressed as percentages.  For more
information on the interpretation of the BW settings see the Dell
specifications for NPAR.

Also update the copyright year.

Change-ID: Id7496ca65630b5037e32ba6a5a748fbc1632881b
Signed-off-by: Greg Rose <gregory.v.rose@intel.com>
Tested-By: Jim Young <james.m.young@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/Makefile
drivers/net/ethernet/intel/i40e/i40e.h
drivers/net/ethernet/intel/i40e/i40e_configfs.c [new file with mode: 0644]
drivers/net/ethernet/intel/i40e/i40e_main.c