]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Thu, 27 Aug 2015 15:00:23 +0000 (08:00 -0700)
commit70a386f92b238a0cedbaf0b123242531494e6055
treeef8f3ffcb2840b46cc126f4532ab075cff8bc03d
parent0b8bc726e27323c0c9c7f494b92a8395199d6a5d
ethtool: Add helper routines to pass vf to rx_flow_spec

Orabug: 21669416

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>
(cherry picked from commit 8cf6f497de405ca9eb87ffb34d90699962d10125)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
include/uapi/linux/ethtool.h