ethtool: Add helper routines to pass vf to rx_flow_spec
authorJohn Fastabend <john.r.fastabend@intel.com>
Tue, 26 May 2015 15:22:49 +0000 (08:22 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 28 May 2015 10:31:12 +0000 (03:31 -0700)
commit8cf6f497de405ca9eb87ffb34d90699962d10125
tree1fd67ceca44c918edddc6170cea8a11b3000ff94
parented2dfd900992aa7b6b3d0abd8ec9a7e9d2c7f827
ethtool: Add helper routines to pass vf to rx_flow_spec

The ring_cookie is 64 bits wide which is much larger than can be used
for actual queue index values. So provide some helper routines to
pack a VF index into the cookie. This is useful to steer packets to
a VF ring without having to know the queue layout of the device.

CC: Alex Duyck <alexander.h.duyck@redhat.com>
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
include/uapi/linux/ethtool.h