]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i40e: partition the ring_cookie to get VF index
authorJacob Keller <jacob.e.keller@intel.com>
Mon, 6 Feb 2017 22:38:48 +0000 (14:38 -0800)
committerJack Vogel <jack.vogel@oracle.com>
Sat, 10 Jun 2017 01:57:03 +0000 (18:57 -0700)
commit263c7d7c0975e6742cfd341c8122cc3781eaaf0d
treee6f6511536e61e62289a74f456e11b78bdaf455a
parent06b907cab883bc0f458ddb995259d8026cecb280
i40e: partition the ring_cookie to get VF index

Do not use the user-def field for determining the VF target. Instead,
similar to ixgbe, partition the ring_cookie value into 8bits of VF
index, along with 32bits of queue number. This is better than using the
user-def field, because it leaves the field open for extension in
a future patch which will enable flexible data. Also, this matches with
convention used by ixgbe and other drivers.

Change-Id: Ie36745186d817216b12f0313b99ec95cb8a9130c
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Orabug: 26132523
(cherry picked from commit 43b15697a3993bf24b0190bccec369d314bc8c36)
Signed-off-by: Jack Vogel <jack.vogel@oracle.com>
Reviewed-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_ethtool.c